odoo/odoo — pull request #1579 by ddico (2014-08-05 06:38:32+00:00)
Title: FIX missing taxes on purchase refund, apply map_tax and replace...

price_unit with original purchase price.

Processing a supplier refund to: a partner with a fiscal position, for a product with taxes... will result in a refund without taxes.

***Impacted versions:***

8.0

***Steps to reproduce:***

1. create a partner as supplier and set a fiscal position
2. create a product and set taxes in accounting tab (set cost to x)
3. create a PO for the above and "confirm order" (manually override the cost to y)
4. "Receive Products"
5. "Transfer"
6. "Reverse Transfer" select Invoicing = "To be refunded/invoiced" click on "return"
7. open the delivery order created and click on "Transfer"
8. on Refund Purchase click on "Create"
9. observe taxes on the Draft refund

***Current behavior:***

Taxes are missing (price_unit is x)

***Expected behavior:***

Have taxes and tax mappings if any (price_unit = y)