[FIX][15.0] contract: Fix forwardport from 14.0 #741

This commit is contained in:
Denis Roussel
2022-01-26 13:53:37 +01:00
parent 188822f9bf
commit 266780115a
2 changed files with 1 additions and 2 deletions

View File

@@ -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.",

View File

@@ -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()