Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
e29bfa6c by Cédric Krier at 2023-08-29T17:06:55+02:00
Recall advance line only for the amount not yet recalled

The method get_recall_lines is called each time an invoice is created so it
should consider the amount previously recalled.

Closes #12319
- - - - -
d6305767 by Cédric Krier at 2023-08-29T17:07:45+02:00
Add test scenario for sale advance payment with invoice on shipment

#12319
- - - - -
5a46059e by Cédric Krier at 2023-08-29T17:35:58+02:00
Use One2Many for searching advance and recalled invoice line

The method get_recall_lines is called by create_invoice which is called from
the processing loop on the sales. So it is better to use relation fields
instead of triggering search query on each iteration.
- - - - -


3 changed files:

- modules/sale_advance_payment/account.py
- modules/sale_advance_payment/sale.py
- + 
modules/sale_advance_payment/tests/scenario_sale_advance_payment_on_shipment.rst


View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/55fe929a6e2c772b853004302cd8af88263c09e8...5a46059e43fb9aa0c27f974ba2c3e446335fa1f2

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/compare/55fe929a6e2c772b853004302cd8af88263c09e8...5a46059e43fb9aa0c27f974ba2c3e446335fa1f2
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to