changeset 058f2e23a600 in modules/account_stock_landed_cost:default
details:
https://hg.tryton.org/modules/account_stock_landed_cost?cmd=changeset&node=058f2e23a600
description:
Limit invoice line to same company as landed cost
issue10438
review336251002
diffstat:
account.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 90fca81841af -r 058f2e23a600 account.py
--- a/account.py Wed May 26 23:42:39 2021 +0200
+++ b/account.py Wed May 26 23:44:13 2021 +0200
@@ -111,12 +111,13 @@
('landed_cost', '=', None),
],
domain=[
+ ('company', '=', Eval('company', -1)),
('invoice.state', 'in', ['posted', 'paid']),
('invoice.type', '=', 'in'),
('product.landed_cost', '=', True),
('type', '=', 'line'),
],
- depends=['state'])
+ depends=['state', 'company'])
allocation_method = fields.Selection([
('value', 'By Value'),
], 'Allocation Method', required=True,