diff --git a/edi_account_oca/models/__init__.py b/edi_account_oca/models/__init__.py index 9c0a42138..74548553b 100644 --- a/edi_account_oca/models/__init__.py +++ b/edi_account_oca/models/__init__.py @@ -1 +1,2 @@ from . import account_move +from . import res_partner diff --git a/edi_account_oca/models/res_partner.py b/edi_account_oca/models/res_partner.py new file mode 100644 index 000000000..5c1cea070 --- /dev/null +++ b/edi_account_oca/models/res_partner.py @@ -0,0 +1,15 @@ +# Copyright 2023 Camptocamp SA +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) + +from odoo import fields, models + + +class ResPartner(models.Model): + _inherit = "res.partner" + + edi_account_move_out_exchange_type_id = fields.Many2one( + string="EDI Exchange type for outgoing invoices", + comodel_name="edi.exchange.type", + help="If defined, this EDI Exchange Type will be used to export invoices " + "of that customer.", + ) diff --git a/edi_account_oca/views/res_partner.xml b/edi_account_oca/views/res_partner.xml index 7fffd7005..ce3aa58f2 100644 --- a/edi_account_oca/views/res_partner.xml +++ b/edi_account_oca/views/res_partner.xml @@ -8,7 +8,9 @@ - + + +