mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] contract: bug onchange date_start (comparison between bool and date)
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "Recurring - Contracts Management",
|
"name": "Recurring - Contracts Management",
|
||||||
"version": "15.0.1.5.3",
|
"version": "15.0.1.5.4",
|
||||||
"category": "Contract Management",
|
"category": "Contract Management",
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"author": "Tecnativa, ACSONE SA/NV, Odoo Community Association (OCA)",
|
"author": "Tecnativa, ACSONE SA/NV, Odoo Community Association (OCA)",
|
||||||
|
|||||||
@@ -110,7 +110,11 @@ class ContractRecurrencyMixin(models.AbstractModel):
|
|||||||
next_period_date_start = rec.last_date_invoiced + relativedelta(days=1)
|
next_period_date_start = rec.last_date_invoiced + relativedelta(days=1)
|
||||||
else:
|
else:
|
||||||
next_period_date_start = rec.date_start
|
next_period_date_start = rec.date_start
|
||||||
if rec.date_end and next_period_date_start > rec.date_end:
|
if (
|
||||||
|
rec.date_end
|
||||||
|
and next_period_date_start
|
||||||
|
and next_period_date_start > rec.date_end
|
||||||
|
):
|
||||||
next_period_date_start = False
|
next_period_date_start = False
|
||||||
rec.next_period_date_start = next_period_date_start
|
rec.next_period_date_start = next_period_date_start
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user