diff --git a/contract/models/abstract_contract.py b/contract/models/abstract_contract.py index f66650b63..eacea2bfe 100644 --- a/contract/models/abstract_contract.py +++ b/contract/models/abstract_contract.py @@ -49,7 +49,6 @@ class ContractAbstractContract(models.AbstractModel): " of all together for the whole contract.", ) generation_type = fields.Selection( - string="Generation Type", selection=lambda self: self._selection_generation_type(), default=lambda self: self._default_generation_type(), help="Choose the document that will be automatically generated by cron.", diff --git a/contract/tests/test_contract.py b/contract/tests/test_contract.py index 353f880a1..37eea84f6 100644 --- a/contract/tests/test_contract.py +++ b/contract/tests/test_contract.py @@ -18,7 +18,7 @@ def to_date(date): return fields.Date.to_date(date) -class TestContractBase(common.SavepointCase): +class TestContractBase(common.TransactionCase): @classmethod def setUpClass(cls): super().setUpClass()