fix: map tax table while creating purchase order from sales order

(cherry picked from commit 1e18569be7)
This commit is contained in:
Sugesh393
2025-03-29 15:34:22 +05:30
committed by Mergify
parent c77f7f4ff0
commit 127c7b93ac

View File

@@ -1427,6 +1427,8 @@ def make_purchase_order(source_name, selected_items=None, target_doc=None):
target.customer = target.customer_name = target.shipping_address = None
target.run_method("set_missing_values")
if not target.taxes:
target.append_taxes_from_item_tax_template()
target.run_method("calculate_taxes_and_totals")
def update_item(source, target, source_parent):