Vauxoo / addons-vauxoo

All our modules related to developments that solves generic issues on Odoo, or that solve internal problems on Odoo Core, if something is here, maybe it is solving an issue in your company, try it and report what you see.
http://www.vauxoo.com
193 stars 288 forks source link

[FIX] partner_credit_limit: fix error `OverflowError: date value out of range` #1407

Closed edy1192 closed 4 years ago

edy1192 commented 4 years ago
  1. [FIX] partner_credit_limit: fix error OverflowError: date value out of range

    • Since the grace_payment_days field is a float, in some cases the user can set really high values (> 999999) which causes the traceback OverflowError: date value out of range.
    • Since that field is used for date operations in the debit_credit_maturity method of theres.partner model.
  2. [FIX] partner_credit_limit: Add = to the validation condition

edy1192 commented 4 years ago

Hi @luisg123v @moylop260

Cherry pick is done.

Regards.

moylop260 commented 4 years ago

Thank you!