-
-
Notifications
You must be signed in to change notification settings - Fork 800
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
base: 17.0
Are you sure you want to change the base?
Conversation
fc07438
to
2108d1c
Compare
There was a problem hiding this 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" /> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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"> |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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"> |
There was a problem hiding this comment.
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>
2108d1c
to
f86803f
Compare
|
@alan196 |
Translated using Weblate (Spanish) Currently translated at 100.0% (3 of 3 strings) Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_lot Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_lot/es/
Translated using Weblate (Italian) Currently translated at 100.0% (3 of 3 strings) Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_lot Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_lot/it/
f86803f
to
840152f
Compare
I have removed that commit and rebased, now is ready to review 👍 @sanderlienaerts |
This PR is ready to review