Skip to content

Commit

Permalink
[IMP] edi_account_oca: add new edi_account_move_exchange_type_id fiel…
Browse files Browse the repository at this point in the history
…d on res.partner
  • Loading branch information
duongtq committed Jan 10, 2024
1 parent abdaea2 commit 81e7616
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions edi_account_oca/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from . import account_move
from . import res_partner
15 changes: 15 additions & 0 deletions edi_account_oca/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -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.",
)
1 change: 1 addition & 0 deletions edi_account_oca/views/res_partner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<field name="arch" type="xml">
<group name="accounting_entries" position="after">
<group name="edi_configuration" string="EDI Configuration" />
<field name="edi_account_move_out_exchange_type_id" />
</group>
</field>
</record>
Expand Down

0 comments on commit 81e7616

Please sign in to comment.