Raise NotImplementedError when setting Function field without setter

issue7985
review265101002
This commit is contained in:
Cédric Krier
2019-03-27 00:28:57 +01:00
parent ad28036169
commit 7af74a2ddc
+10 -4
View File
@@ -80,8 +80,11 @@ Create some moves::
>>> line.account = receivable
>>> line.debit = Decimal(5)
>>> line.party = party
>>> move.post_date = period_previous.start_date
>>> move.post_number = '1'
>>> move.save()
>>> Move.write([move.id], {
... 'post_date': period_previous.start_date,
... 'post_number': '1',
... }, config.context)
>>> move.click('post')
With an empty line::
@@ -100,8 +103,11 @@ With an empty line::
>>> line = move.lines.new()
>>> line.account = cash
>>> line.debit = line.credit = Decimal(0)
>>> move.post_date = period.start_date
>>> move.post_number = '1'
>>> move.save()
>>> Move.write([move.id], {
... 'post_date': period.start_date,
... 'post_number': '1',
... }, config.context)
>>> move.click('post')
Balance non-deferral::