-
-
Notifications
You must be signed in to change notification settings - Fork 801
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] purchase_order_secondary_unit: Migration to 17.0 #2319
base: 17.0
Are you sure you want to change the base?
[17.0][MIG] purchase_order_secondary_unit: Migration to 17.0 #2319
Conversation
66ede93
to
ef3d474
Compare
|
59ff20b
to
6af60e8
Compare
6af60e8
to
6f4471c
Compare
463db35
to
45ec32e
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.
Functional Review 👍
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.
Please @mmrondon Can yo sure that all commits from older version are in your PR..? |
Hello @mmrondon will you resume this PR soon? Thanks! |
Hi @mmrondon, can you squash commits into one please? |
…_unit mixin model from product-attribute repository.
…n confirmed purchase
…purchases TT45090
…condary_uom_qty is filled
Fix a bug when calling super's `_compute_product_qty()` was skipping the compute helper from the mixin. @moduon MT-3483 Co-authored-by: Andrea Cattalani <22261939+anddago78@users.noreply.github.com>
… qty set to 1 Co-authored-by: David Alonso // Solvos <david.alonso@solvos.es>
…ndary quantity fields optional TT49686
…secondary uom without product in sale order line TT51683
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_order_secondary_unit Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_order_secondary_unit/
Currently translated at 100.0% (11 of 11 strings) Translation: purchase-workflow-16.0/purchase-workflow-16.0-purchase_order_secondary_unit Translate-URL: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_order_secondary_unit/it/
45ec32e
to
b1b632f
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.
@mmrondon could take a look at the comments, and the changes you've added in migration commit in general? It seems that you've preserved original migration commit files changes after you've update commit history, and some changes added in recently added commits have been lost.
groups="uom.group_uom" | ||
optional="show" |
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.
Please don't remove this, as it was added in an recent commit, when updating commit history
groups="uom.group_uom" | ||
optional="show" |
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.
The same as above
<field | ||
name="secondary_uom_qty" | ||
class="oe_inline oe_no_button" | ||
groups="uom.group_uom" | ||
readonly="state in ['done', 'cancel']" | ||
/> | ||
<field | ||
name="secondary_uom_id" | ||
class="oe_inline" | ||
domain="['|', ('product_id', '=', product_id), | ||
'&', ('product_tmpl_id.product_variant_ids', 'in', [product_id]), | ||
('product_id', '=', False)]" | ||
options="{'no_create': True}" | ||
groups="uom.group_uom" | ||
readonly="state in ['purchase','done', 'cancel']" | ||
required="secondary_uom_qty != 0.0" | ||
/> |
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.
It seems that some later changes have been lost in this commit:
- Move whole code to a
<t>
node. - Improvements in
secondary_uom_id
domain added by ee8f610
<field | ||
name="purchase_secondary_uom_id" | ||
options="{'no_create': True}" | ||
groups="uom.group_uom" | ||
/> |
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.
The same as below with <t>
node
[IMP] purchase_order_secondary_unit: pre-commit auto fixes [IMP] purchase_order_secondary_unit: pre-commit auto fixes [DON'T MERGE] test-requirements.txt [Don't MERGE] Remove dependency [MIG] purchase_order_secondary_unit: Fix issue on test [IMP] purchase_order_secondary_unit: pre-commit auto fixes [IMP] purchase_order_secondary_unit: Restore commit history from version 16.0
b1b632f
to
4dd8a17
Compare
hello @dalonsod sorry for that, already modified |
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.
There are still some things to be fixed in commit history, please check
@@ -12,6 +12,7 @@ | |||
<field | |||
name="purchase_secondary_uom_id" | |||
options="{'no_create': True}" | |||
groups="uom.group_uom" |
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.
This is redundant, the field is placed into a <t>
that have already groups attribute
@@ -15,16 +15,19 @@ | |||
<field | |||
name="secondary_uom_qty" | |||
class="oe_inline oe_no_button" | |||
attrs="{'readonly': [('state', 'in', ('done', 'cancel'))]}" | |||
groups="uom.group_uom" |
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.
The same as above
options="{'no_create': True}" | ||
attrs="{'readonly': [('state', 'in', ('purchase', 'done', 'cancel'))], 'required': [('secondary_uom_qty', '!=', 0.0)]}" | ||
groups="uom.group_uom" |
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.
The same as above
/> | ||
<field | ||
name="secondary_uom_id" | ||
class="oe_inline" | ||
domain="product_id and ['|', ('product_id', '=', product_id), | ||
domain="['|', ('product_id', '=', product_id), |
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.
domain
definition is still the old one, changes added by ee8f610 are lost, please check diff at this point.
Hello @mmrondon would you resume this PR and attend pending comments? Thanks! |
Superseded by #2492 |
No description provided.