Files
odoo_source/addons/sale_purchase
Jeremy Kersten ee5c0666f3 [IMP] sale_service: allow to filter the match of previous PO
Before this commit, to refine the choose of the best existing purchase
order on which we could add the commission, we need to recopy the
query and add new constraint on it.
Now the method return all purchase orders valid, and a simple override
of this method will allow to refine adding filter on current result.

Use the company from the PO and not the company of the current env.
It should be 'more' correct to compute taxes with real used company and
it will also allow to force another company on the po and respect it.

closes odoo/odoo#125572

X-original-commit: 082938d254e9d7fc4ae442412077b9019b2394d0
Signed-off-by: Paul Morelle (pmo) <pmo@odoo.com>
2023-06-23 09:20:57 +02:00
..
…