Skip to content

Commit

Permalink
[IMP] l10n_br_account: add pix fields for partners
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniospneto committed Sep 19, 2022
1 parent 3b24c95 commit f4642b2
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions l10n_br_account/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"views/l10n_br_account_menu.xml",
# Report
# "report/account_invoice_report_view.xml",
"views/res_partner_view.xml",
],
"demo": [
"demo/res_users_demo.xml",
Expand Down
34 changes: 34 additions & 0 deletions l10n_br_account/views/res_partner_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!--
Partners Extension
-->
<record id="l10n_br_account_partner_form" model="ir.ui.view">
<field name="name">l10n_br_account.res.partner.form</field>
<field name="model">res.partner</field>
<field name="priority">99</field>
<field name="inherit_id" ref="account.view_partner_property_form" />
<field name="arch" type="xml">
<group position="after" name="banks">
<div />
<group
string="Brazilian Instant Payment Keys (PIX)"
name="pix_keys"
groups="account.group_account_invoice,account.group_account_readonly"
attrs="{'invisible': [('show_l10n_br', '=', False)]}"
>
<field name="show_l10n_br" invisible="1" />
<field name="pix_key_ids" nolabel="1">
<tree editable="bottom">
<field name="partner_id" invisible="1" />
<field name="sequence" widget="handle" />
<field name="key_type" />
<field name="key" />
<field name="partner_bank_id" />
</tree>
</field>
</group>
</group>
</field>
</record>
</odoo>

0 comments on commit f4642b2

Please sign in to comment.