El 17/10/14 a les 15:32, Oscar Tark ha escrit:
I had posted some time ago about directly posting invoices, That has
been resolved. Yet so we would like to have one button in sale that
posts the invoice and makes all shipments. Going through three modules
to make a simple shipment in a small company won't work we have also
tried timing on a stopwatch and one shipment takes too long as there are
too many processes in between, how would such a button to make
"sale->postinvoice->sendshipments->print invoice" be implemented?
This may depend on the invoice and the shipment method. That determines the order to post/confirm moves.

Nevertheless if you're not working with shipments, i will recomend customizing your sale workflow in order to not create shipments and only create stock moves (so product quantities are updated) as done in the sale_pos module [1].

For invoices, just call invoice.post at the end of the process transition.


[1] https://bitbucket.org/zikzakmedia/trytond-sale_pos/src/4c50078c4449a7f147ff97a37318a8a80256a808/sale.py?at=default#cl-171
--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Reply via email to