-
-
Notifications
You must be signed in to change notification settings - Fork 699
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
[14.0][MIG] uom #2666
[14.0][MIG] uom #2666
Conversation
458de52
to
bfbf008
Compare
This PR has the |
Deleting a field entry doesn't mean that the entry is nullified. In this case, it means the the default value is applied, so we put such value.
Added a correction for some uom roundings, so merging. |
@@ -39,7 +39,7 @@ | |||
<field name="name">qt (US)</field> | |||
</record> | |||
<record id="product_uom_unit" model="uom.uom"> | |||
<field name="rounding"/> | |||
<field name="rounding" eval="0.01"/> |
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.
violates _check_category_reference_uniqueness
https://github.com/OCA/OCB/blob/13.0/addons/uom/models/uom_uom.py#L83-L94
File "/home/gcapalbo/k240/migrate_therp/build-14.0/parts/odoo/addons/uom/models/uom_uom.py", line 85, in check_category_reference_uniqueness
raise ValidationError(("UoM category %s should only have one reference unit of measure.") % (self.env['uom.category'].browse(uom_data['category_id']).name,))
odoo.exceptions.ValidationError: UoM categorie Unitheeft slechts één referentie maateenheid.
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.
But this error doesn't have any relation with the rounding. This constrain already existed in v13, and your problem seems more a problem of your db data, which has something wrong and you should solve manually before migrating.
Migration scripts.
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr