fix: To allow creation of sales invoice without customer
This commit is contained in:
parent
d07a3e1de2
commit
ab1c43dbee
@ -1166,6 +1166,9 @@ class SalesInvoice(SellingController):
|
|||||||
self.set_missing_values(for_validate = True)
|
self.set_missing_values(for_validate = True)
|
||||||
|
|
||||||
def validate_inter_company_party(doctype, party, company, inter_company_reference):
|
def validate_inter_company_party(doctype, party, company, inter_company_reference):
|
||||||
|
if not party:
|
||||||
|
return
|
||||||
|
|
||||||
if doctype in ["Sales Invoice", "Sales Order"]:
|
if doctype in ["Sales Invoice", "Sales Order"]:
|
||||||
partytype, ref_partytype, internal = "Customer", "Supplier", "is_internal_customer"
|
partytype, ref_partytype, internal = "Customer", "Supplier", "is_internal_customer"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user