fix: skip max discount validation for rate adjustment

(cherry picked from commit 5a3b133d6520661fe28e4c2d73c17ef4eb48be1e)
This commit is contained in:
Gursheen Anand 2024-02-22 16:08:11 +05:30 committed by Mergify
parent 83b4cc5091
commit 3b96aaeead

View File

@ -28,7 +28,8 @@ class SellingController(StockController):
def validate(self):
super(SellingController, self).validate()
self.validate_items()
self.validate_max_discount()
if not self.get("is_debit_note"):
self.validate_max_discount()
self.validate_selling_price()
self.set_qty_as_per_stock_uom()
self.set_po_nos(for_validate=True)