changeset 0e6703a75db0 in tryton-tools:default
details: https://hg.tryton.org/tryton-tools?cmd=changeset&node=0e6703a75db0
description:
Use reference field for statement line relation
issue6854
diffstat:
tryton_demo.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 3a7eb58e79c6 -r 0e6703a75db0 tryton_demo.py
--- a/tryton_demo.py Mon May 02 23:04:19 2022 +0200
+++ b/tryton_demo.py Mon May 02 23:04:58 2022 +0200
@@ -510,7 +510,7 @@
line.amount = amount
line.party = invoice.party
if random.random() < 2. / 3.:
- line.invoice = invoice
+ line.related_to = invoice
total_amount += line.amount
statement.end_balance = total_amount