Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] Migration of module purchase_lot #2331

Open
wants to merge 18 commits into
base: 17.0
Choose a base branch
from

Conversation

alan196
Copy link
Contributor

@alan196 alan196 commented Jul 2, 2024

This PR is ready to review

@alan196 alan196 force-pushed the 17.0-mig-purchase_lot branch from fc07438 to 2108d1c Compare July 2, 2024 12:49
Copy link

@sanderlienaerts sanderlienaerts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -19,7 +19,7 @@
<field name="inherit_id" ref="purchase.purchase_order_line_form2" />
<field name="arch" type="xml">
<xpath expr="//field[@name='product_id']" position="after">
<field name="lot_id" />
<field name="lot_id" readonly="1" />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are your thoughts on moving the readonly attribute from the Python code to the XML-records?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 👍

<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.view_purchase_order_filter" />
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="after">
Copy link

@sanderlienaerts sanderlienaerts Aug 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<field name="name" position="after"></field> should suffice

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how to do this... in previous PR's I use that approach, and the reviewers suggest me to use xpath.

I think this depends on preference and it will work the same way.

<field name="model">purchase.order.line</field>
<field name="inherit_id" ref="purchase.purchase_order_line_form2" />
<field name="arch" type="xml">
<xpath expr="//field[@name='product_id']" position="after">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can replace the xpath expression by just using <field name="product_id" position="after"></field>

@alan196 alan196 force-pushed the 17.0-mig-purchase_lot branch from 2108d1c to f86803f Compare August 2, 2024 15:28
@sanderlienaerts
Copy link

stock_restrict_lot was merged in OCA/stock-logistics-workflow#1652

@sanderlienaerts
Copy link

@alan196 sale_order_lot_selection was also merged, can you please remove the test-requirements.txt?

@alan196 alan196 force-pushed the 17.0-mig-purchase_lot branch from f86803f to 840152f Compare September 5, 2024 12:49
@alan196
Copy link
Contributor Author

alan196 commented Sep 5, 2024

I have removed that commit and rebased, now is ready to review 👍 @sanderlienaerts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants