Skip to content

Commit

Permalink
[IMP] shopinvader_schema_address: add field res_partner.company_type …
Browse files Browse the repository at this point in the history
…on Address Schema
  • Loading branch information
chaule97 committed Jun 25, 2024
1 parent eb2df78 commit 212477f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shopinvader_schema_address/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Address(StrictExtendableBaseModel):
email: str | None = None
state_id: int | None = None
country_id: int | None = None
company_type: str | None = None

@classmethod
def from_res_partner(cls, odoo_rec):
Expand All @@ -31,6 +32,7 @@ def from_res_partner(cls, odoo_rec):
email=odoo_rec.email or None,
state_id=odoo_rec.state_id.id or None,
country_id=odoo_rec.country_id.id or None,
company_type=odoo_rec.company_type or None,
)


Expand Down

0 comments on commit 212477f

Please sign in to comment.