changeset 7b62c2ccfb93 in modules/stock_quantity_early_planning:default
details:
https://hg.tryton.org/modules/stock_quantity_early_planning?cmd=changeset&node=7b62c2ccfb93
description:
Send only the required fields when fetching a readonly view definition
issue11134
review380081002
diffstat:
stock.py | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (23 lines):
diff -r d62bbb9aae28 -r 7b62c2ccfb93 stock.py
--- a/stock.py Wed Apr 06 23:37:44 2022 +0200
+++ b/stock.py Fri Apr 08 19:07:14 2022 +0200
@@ -34,8 +34,7 @@
'stock.shipment.internal': [
('company', '=', Eval('company', -1)),
],
- },
- depends=['company'])
+ })
planned_date = fields.Function(
fields.Date("Planned Date"),
'on_change_with_planned_date')
@@ -58,8 +57,7 @@
"Earliest Percentage", digits=(1, 4),
states={
'invisible': ~Eval('earliest_date'),
- },
- depends=['earliest_date']),
+ }),
'get_earliest_percentage')
warehouse = fields.Function(
fields.Many2One('stock.location', "Warehouse"),