def validate(self): #validation for Naming Series mandatory field... if frappe.defaults.get_global_default('supp_master_name') == 'Naming Series': if not self.naming_series: msgprint(_("Series is mandatory"), raise_exception=1) validate_accounting_currency(self) validate_party_account(self)
def validate(self): self.flags.is_new_doc = self.is_new() validate_accounting_currency(self) validate_party_account(self)