diff --git a/contract_price_revision/README.rst b/contract_price_revision/README.rst index 36373a287..60b017de7 100644 --- a/contract_price_revision/README.rst +++ b/contract_price_revision/README.rst @@ -83,6 +83,7 @@ Contributors - Vicent Cubells - Carlos Dauden - Carolina Fernandez + - Juan José Seguí Maintainers ----------- diff --git a/contract_price_revision/__manifest__.py b/contract_price_revision/__manifest__.py index 85e3ce33e..879aaccaa 100644 --- a/contract_price_revision/__manifest__.py +++ b/contract_price_revision/__manifest__.py @@ -6,7 +6,7 @@ { "name": "Contract Price Revision", "summary": "Easy revision of contract prices", - "version": "15.0.1.0.0", + "version": "17.0.1.0.0", "category": "Contract", "author": "ACSONE SA/NV, Tecnativa, Odoo Community Association (OCA)", "license": "AGPL-3", diff --git a/contract_price_revision/models/contract_line.py b/contract_price_revision/models/contract_line.py index 54d566c58..d694a29a7 100644 --- a/contract_price_revision/models/contract_line.py +++ b/contract_price_revision/models/contract_line.py @@ -30,7 +30,7 @@ class ContractLine(models.Model): @api.depends_context("date_start") def _compute_price_can_be_revised(self): - date_start = self.env.context.get("date_start", fields.Date.today()) + date_start = self.env.context.get("date_start", fields.Date.context_today(self)) lines_can_be_revised = self.filtered( lambda line: not line.never_revise_price and not line.automatic_price diff --git a/contract_price_revision/readme/CONTRIBUTORS.md b/contract_price_revision/readme/CONTRIBUTORS.md index f3cfddabb..aab8f5460 100644 --- a/contract_price_revision/readme/CONTRIBUTORS.md +++ b/contract_price_revision/readme/CONTRIBUTORS.md @@ -2,3 +2,4 @@ - Vicent Cubells - Carlos Dauden - Carolina Fernandez + - Juan José Seguí diff --git a/contract_price_revision/static/description/index.html b/contract_price_revision/static/description/index.html index 2bd91eb17..73d118ad6 100644 --- a/contract_price_revision/static/description/index.html +++ b/contract_price_revision/static/description/index.html @@ -429,6 +429,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome