mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[14.0][IMP] contract_sale_generation: Align method on Odoo conventions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user