mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] contract_variable_quantity: Make name translatable
This commit is contained in:
@@ -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,"
|
||||||
|
|||||||
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user