From 212477fb306b903903e0f1d1d707ca6e4fd55ece Mon Sep 17 00:00:00 2001 From: chaule97 Date: Tue, 25 Jun 2024 16:17:26 +0700 Subject: [PATCH] [IMP] shopinvader_schema_address: add field res_partner.company_type on Address Schema --- shopinvader_schema_address/schemas.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shopinvader_schema_address/schemas.py b/shopinvader_schema_address/schemas.py index f05f0e8aa5..c482bef0c1 100644 --- a/shopinvader_schema_address/schemas.py +++ b/shopinvader_schema_address/schemas.py @@ -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): @@ -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, )