Skip to content

Commit

Permalink
Quotations would only check for Gmaps address if present
Browse files Browse the repository at this point in the history
  • Loading branch information
adityaduggal committed Jul 1, 2020
1 parent 3a50ae7 commit 527a2f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rigpl_erpnext/rigpl_erpnext/validations/quotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@


def validate(doc, method):
validate_address_google_update(doc.customer_address)
validate_address_google_update(doc.shipping_address_name)
if doc.customer_address:
validate_address_google_update(doc.customer_address)
if doc.shipping_address_name:
validate_address_google_update(doc.shipping_address_name)
if doc.quotation_to == 'Customer':
check_dynamic_link(parenttype="Address", parent=doc.customer_address,
link_doctype="Customer", link_name=doc.party_name)
Expand Down

0 comments on commit 527a2f7

Please sign in to comment.