Skip to content

Commit

Permalink
[IMP] edi_account_oca: add exc type conf field to partner
Browse files Browse the repository at this point in the history
  • Loading branch information
duongtq committed Nov 20, 2023
1 parent abc5358 commit 50993e9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
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.",
)
4 changes: 3 additions & 1 deletion edi_account_oca/views/res_partner.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
<field name="inherit_id" ref="account.view_partner_property_form" />
<field name="arch" type="xml">
<group name="accounting_entries" position="after">
<group name="edi_configuration" string="EDI Configuration" />
<group name="edi_configuration" string="EDI Configuration">
<field name="edi_account_move_out_exchange_type_id" />
</group>
</group>
</field>
</record>
Expand Down

0 comments on commit 50993e9

Please sign in to comment.