changeset 90fca81841af in modules/account_stock_landed_cost:default
details:
https://hg.tryton.org/modules/account_stock_landed_cost?cmd=changeset&node=90fca81841af
description:
Filter invoice line using landed cost on product
For more flexibility the domain must be based on the product field
instead of
the template.
issue10439
review344201023
diffstat:
account.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r e61190313cd0 -r 90fca81841af account.py
--- a/account.py Mon May 03 15:52:04 2021 +0200
+++ b/account.py Wed May 26 23:42:39 2021 +0200
@@ -113,7 +113,7 @@
domain=[
('invoice.state', 'in', ['posted', 'paid']),
('invoice.type', '=', 'in'),
- ('product.template.landed_cost', '=', True),
+ ('product.landed_cost', '=', True),
('type', '=', 'line'),
],
depends=['state'])