Browse Source

[IMP] contract_variable_quantity: Make name translatable

pull/155/head
Pedro M. Baeza 7 years ago
parent
commit
133e88c7a0
  1. 2
      contract_variable_quantity/__manifest__.py
  2. 2
      contract_variable_quantity/models/contract.py

2
contract_variable_quantity/__manifest__.py

@ -4,7 +4,7 @@
{ {
'name': 'Variable quantity in contract recurrent invoicing', 'name': 'Variable quantity in contract recurrent invoicing',
'version': '11.0.1.1.0',
'version': '11.0.1.2.0',
'category': 'Contract Management', 'category': 'Contract Management',
'license': 'AGPL-3', 'license': 'AGPL-3',
'author': "Tecnativa," 'author': "Tecnativa,"

2
contract_variable_quantity/models/contract.py

@ -56,7 +56,7 @@ class AccountAnalyticInvoiceLine(models.Model):
class ContractLineFormula(models.Model): class ContractLineFormula(models.Model):
_name = 'contract.line.qty.formula' _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") code = fields.Text(required=True, default="result = 0")
@api.constrains('code') @api.constrains('code')

Loading…
Cancel
Save