fix: ignore pricing rule while making DN from Pick List (#42763)

This commit is contained in:
rohitwaghchaure
2024-08-14 15:22:19 +05:30
committed by GitHub
parent ad4991dc47
commit 0db82ec93a
4 changed files with 76 additions and 2 deletions

View File

@@ -941,6 +941,10 @@ def make_delivery_note(source_name, target_doc=None, kwargs=None):
}
def set_missing_values(source, target):
if kwargs.get("ignore_pricing_rule"):
# Skip pricing rule when the dn is creating from the pick list
target.ignore_pricing_rule = 1
target.run_method("set_missing_values")
target.run_method("set_po_nos")
target.run_method("calculate_taxes_and_totals")