From 7af74a2ddc847aeb49bb0de885f75feaf31b807e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 27 Mar 2019 00:28:57 +0100 Subject: [PATCH] Raise NotImplementedError when setting Function field without setter issue7985 review265101002 --- tests/scenario_fec.rst | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/scenario_fec.rst b/tests/scenario_fec.rst index 4f2853ee21..46f5af3d91 100644 --- a/tests/scenario_fec.rst +++ b/tests/scenario_fec.rst @@ -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::