-
-
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][OU-ADD] sale_margin: Migration scripts #3096
Conversation
8968885
to
5f1ffba
Compare
openupgrade_scripts/scripts/sale_margin/14.0.1.0/pre-migration.py
Outdated
Show resolved
Hide resolved
5f1ffba
to
6fbfeb6
Compare
@MiquelRForgeFlow i changed following u but the type column in DB is double_precision, it that correct? |
@hieu1211 you can find the corresponding type in https://github.com/OCA/openupgradelib/blob/master/openupgradelib/openupgrade.py#L2309. |
thanks for responding, i will check it |
@MiquelRForgeFlow maybe you are wrong margin_percent = fields.Float(
"Margin (%)", compute='_compute_margin', store=True, groups="base.group_user") 'float': 'numeric', # Force manually to double precision if no digits |
Oh, right, sorry for the noise. |
6fbfeb6
to
2f226a6
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.
FYI, the openupgradelib method was develop from reading this line of Odoo code:
This PR
migration done