Split process method and group creation
The process
method of Sale
and Purchase
are saving records once per sale or purchase. This is not very efficient (see #3516 (closed)).
Indeed by doing multiple loops we can save the invoices, the shipments and moves at once.
Also we could set the invoice and shipment state at once per state value.
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Cédric Krier assigned to @ced
assigned to @ced
- Cédric Krier added purchasing sales type::performance + 1 deleted label
added purchasing sales type::performance + 1 deleted label
- Author Owner
Here is review372071002. It could not improve the save in
create_invoice
insale_shipment_cost
but this will be automatically improved by #10799 (closed). - Cédric Krier added 1 deleted label and removed 1 deleted label
added 1 deleted label and removed 1 deleted label
New review372071002 at https://codereview.tryton.org/372071002/#ps350691002
New changeset 3653cd3f0f44 by Cédric Krier in branch 'default':
Split process method to avoid create/write in loop
https://hg.tryton.org/modules/product_kit/rev/3653cd3f0f44- Roundup Robot added 1 deleted label and removed 1 deleted label
added 1 deleted label and removed 1 deleted label
- Roundup Robot closed
closed
New changeset 4893e9ec0c9e by Cédric Krier in branch 'default':
Split process method to avoid create/write in loop
https://hg.tryton.org/modules/purchase/rev/4893e9ec0c9eNew changeset bdbd8ba02e94 by Cédric Krier in branch 'default':
Split process method to avoid create/write in loop
https://hg.tryton.org/modules/sale/rev/bdbd8ba02e94New changeset d35fb4d82cc8 by Cédric Krier in branch 'default':
Split process method to avoid create/write in loop
https://hg.tryton.org/modules/sale_shipment_cost/rev/d35fb4d82cc8New changeset 92eff0a2b078 by Cédric Krier in branch 'default':
Split process method to avoid create/write in loop
https://hg.tryton.org/modules/sale_supply/rev/92eff0a2b078New changeset cbf861fec31e by Cédric Krier in branch 'default':
Split process method to avoid create/write in loop
https://hg.tryton.org/modules/sale_supply_drop_shipment/rev/cbf861fec31eNew changeset e9f3ab658e28 by Cédric Krier in branch 'default':
Split process method to avoid create/write in loop
https://hg.tryton.org/modules/sale_supply_production/rev/e9f3ab658e28New changeset 53bf6afc3cf4 by Cédric Krier in branch 'default':
Split process method to avoid create/write in loop
https://hg.tryton.org/tryton-env/rev/53bf6afc3cf4New changeset 3938612a9b45 by Cédric Krier in branch 'default':
Do not delete unsaved invoice and lines
https://hg.tryton.org/modules/purchase/rev/3938612a9b45New changeset 001241f6b161 by Cédric Krier in branch 'default':
Do not delete unsaved invoice and lines
https://hg.tryton.org/modules/purchase_invoice_line_standalone/rev/001241f6b161New changeset 9af25a2b5542 by Cédric Krier in branch 'default':
Do not delete unsaved invoice and lines
https://hg.tryton.org/tryton-env/rev/9af25a2b5542- Cédric Krier mentioned in issue #10877 (closed)
mentioned in issue #10877 (closed)
- Cédric Krier mentioned in issue #11685 (closed)
mentioned in issue #11685 (closed)
- Cédric Krier marked #5352 (closed) as a duplicate of this issue
marked #5352 (closed) as a duplicate of this issue
- Cédric Krier marked this issue as related to #5352 (closed)
marked this issue as related to #5352 (closed)