[14.0][IMP] contract_sale_generation: Align method on Odoo conventions

This commit is contained in:
Denis Roussel
2022-01-21 11:38:50 +01:00
parent 1d486ac073
commit 20bd5c16d5

View File

@@ -11,7 +11,7 @@ class ContractAbstractContract(models.AbstractModel):
sale_autoconfirm = fields.Boolean(string="Sale Autoconfirm")
@api.model
def _get_generation_type_selection(self):
res = super()._get_generation_type_selection()
def _selection_generation_type(self):
res = super()._selection_generation_type()
res.append(("sale", "Sale"))
return res