Browse Source

[IMP] contract_variable_quantity: Make name translatable

pull/238/head
Pedro M. Baeza 7 years ago
committed by sbejaoui
parent
commit
691808e9ef
  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',
'version': '11.0.1.1.0',
'version': '11.0.1.2.0',
'category': 'Contract Management',
'license': 'AGPL-3',
'author': "Tecnativa,"

2
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')

Loading…
Cancel
Save