From 133e88c7a0cbf9f5169d0e8a0042857568e095c1 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 29 Mar 2018 08:42:46 +0200 Subject: [PATCH] [IMP] contract_variable_quantity: Make name translatable --- contract_variable_quantity/__manifest__.py | 2 +- contract_variable_quantity/models/contract.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contract_variable_quantity/__manifest__.py b/contract_variable_quantity/__manifest__.py index 5ddacb15..de10a337 100644 --- a/contract_variable_quantity/__manifest__.py +++ b/contract_variable_quantity/__manifest__.py @@ -4,7 +4,7 @@ { 'name': 'Variable quantity in contract recurrent invoicing', - 'version': '11.0.1.1.0', + 'version': '11.0.1.2.0', 'category': 'Contract Management', 'license': 'AGPL-3', 'author': "Tecnativa," diff --git a/contract_variable_quantity/models/contract.py b/contract_variable_quantity/models/contract.py index 57965950..d4de2a6c 100644 --- a/contract_variable_quantity/models/contract.py +++ b/contract_variable_quantity/models/contract.py @@ -56,7 +56,7 @@ class AccountAnalyticInvoiceLine(models.Model): class ContractLineFormula(models.Model): _name = 'contract.line.qty.formula' - name = fields.Char(required=True) + name = fields.Char(required=True, translate=True) code = fields.Text(required=True, default="result = 0") @api.constrains('code')