Skip to content
Snippets Groups Projects
Commit 7ec8b25e authored by Mahamadasif Ansari's avatar Mahamadasif Ansari
Browse files

[FIX] account: assign current date in due_date if date_ref not available


Unsupported operand type(s) for +: 'NoneType' and 'relativedelta'
occur when we create payment terms without a preview date (date_ref).
This is because date_ref has no value.

This commit solves the issue by adding a condition if date_ref is not
available, so it adds current date instead of it.

sentry-4068322613

closes odoo/odoo#118027

Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
parent 83e58a0e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment