Browse Source

[IMP] return to profile page when company info are not complete

pull/134/head
houssine 4 years ago
parent
commit
27bba41521
  1. 6
      easy_my_coop_loan_website/controllers/main.py

6
easy_my_coop_loan_website/controllers/main.py

@ -39,6 +39,12 @@ class WebsiteLoanIssueSubscription(http.Controller):
or not partner.phone or not partner.phone
): ):
return False return False
if partner.is_company:
if (
not partner.company_name
or not partner.vat
):
return False
return True return True
@http.route( @http.route(

Loading…
Cancel
Save