changeset 6865061c9a0a in tryton-tools:default
details: https://hg.tryton.org/tryton-tools?cmd=changeset&node=6865061c9a0a
description:
Use click to call button
diffstat:
tryton_demo.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 9aff7c283fef -r 6865061c9a0a tryton_demo.py
--- a/tryton_demo.py Fri May 21 16:03:38 2021 +0200
+++ b/tryton_demo.py Sun Oct 31 17:30:49 2021 +0100
@@ -298,7 +298,7 @@
sequence.save()
setattr(invoice_sequence, attr, sequence)
fiscalyear.save()
- FiscalYear.create_period([fiscalyear.id], config.context)
+ fiscalyear.click('create_period')
def setup_product(config, modules, company=None):
@@ -591,7 +591,8 @@
shipments = ShipmentOut.find([('state', '=', 'waiting')])
for shipment in shipments:
- if ShipmentOut.assign_try([shipment.id], config.context):
+ if shipment.click('assign_try'):
+ shipment.click('pick')
shipment.click('pack')
shipment.click('done')