refactor odoo company type handling #143
No reviewers
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: servala/servala-portal#143
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "odoo-company-check"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This solves this error seen in the Odoo log:
In Odoo,
is_company
is the stored boolean field that determines if a partner is a company (True) or an individual/contact (False), whilecompany_type
is a computed field that returns "company" or "person" based on theis_company
value.LGTM
@ -120,3 +120,2 @@
def get_odoo_access_conditions(user):
# We’re building our conditions in order:
# - in exceptions, users may be using a billing account’s email
# We're building our conditions in order:
haha sorry, I use apostrophes by default when writing text (as opposed to code), but I suppose that does look odd in some IDEs …