Closed luisg123v closed 4 years ago
@keylor2906 Could you review, please?
This fix the issue regarding credit limit values not being migrated.
CC @edy1192
@moylop260 or @keylor2906 Could you review/merge, please?
The main issue here is because of the field partner_credit_limit
is defined by odoo itself.
So, it is required for installation from scratch.
Starting from 1e18a7457, the partner's credit limit field is company-dependent, so their values need to be set manually, because they are properties instead of a standard field.
A migration script was provided on the aforementioned commit to set that value when the module is already installed. However, since that field is a native one, values need to be set also when the module is installed.
This commit fixes the above by implementing a post-init hook to set required values.