changeset a108ab1afc05 in modules/account_fr_chorus:default
details:
https://hg.tryton.org/modules/account_fr_chorus?cmd=changeset&node=a108ab1afc05
description:
Use invoice company when searching invoices to send
issue10755
review373581002
diffstat:
account.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 5bda04a14511 -r a108ab1afc05 account.py
--- a/account.py Thu Sep 23 10:06:15 2021 +0200
+++ b/account.py Thu Sep 23 10:07:39 2021 +0200
@@ -199,7 +199,8 @@
records = cls.search(['OR',
('number', '=', None),
('number', '=', ''),
- ('company', '=', transaction.context.get('company')),
+ ('invoice.company', '=',
+ transaction.context.get('company')),
])
for record in records: