Skip to content

Commit

Permalink
[IMP] edi_sale_oca: add partner form page
Browse files Browse the repository at this point in the history
  • Loading branch information
thienvh332 committed Jul 19, 2024
1 parent bd3e057 commit d4dd854
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions edi_sale_oca/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
],
"data": [
"data/job_function.xml",
"views/res_partner.xml",
"views/sale_order.xml",
"views/edi_exchange_record.xml",
"templates/exchange_chatter_msg.xml",
Expand Down
22 changes: 22 additions & 0 deletions edi_sale_oca/views/res_partner.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2022 Camptocamp SA
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="view_partner_form" model="ir.ui.view">
<field name="name">res.partner.view.form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<xpath expr="//page[last()]" position="after">
<page name="edi" string="EDI">
<!--
TODO: IMO this page must be provided by edi_oca
and all the modules should hook here instead of adding their own blocks
here and there (see edi_account_oca, edi_stock_oca, etc)
-->
<group name="edi_main" />
</page>
</xpath>
</field>
</record>
</odoo>

0 comments on commit d4dd854

Please sign in to comment.