changeset 7213d9cbe5fd in modules/account_fr:default
details:
https://hg.tryton.org/modules/account_fr?cmd=changeset;node=7213d9cbe5fd
description:
Raise NotImplementedError when setting Function field without setter
issue7985
review265101002
diffstat:
tests/scenario_fec.rst | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r cc6d81fdf1fa -r 7213d9cbe5fd tests/scenario_fec.rst
--- a/tests/scenario_fec.rst Tue Mar 26 09:31:43 2019 +0100
+++ b/tests/scenario_fec.rst Wed Mar 27 00:28:57 2019 +0100
@@ -80,8 +80,11 @@
>>> 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 @@
>>> 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::