fix: order_type validation restriction (#18096) (#21264)

Co-authored-by: Don-Leopardo <46027152+Don-Leopardo@users.noreply.github.com>
This commit is contained in:
Rohan
2020-04-14 19:42:21 +05:30
committed by GitHub
parent 49b653b444
commit b0f000b1c8
3 changed files with 0 additions and 15 deletions

View File

@@ -148,13 +148,6 @@ class SellingController(StockController):
if sales_team and total != 100.0:
throw(_("Total allocated percentage for sales team should be 100"))
def validate_order_type(self):
valid_types = ["Sales", "Maintenance", "Shopping Cart"]
if not self.order_type:
self.order_type = "Sales"
elif self.order_type not in valid_types:
throw(_("Order Type must be one of {0}").format(comma_or(valid_types)))
def validate_max_discount(self):
for d in self.get("items"):
if d.item_code: