-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] l10n_mx_edi_addenda_audi: Fix mail and number
- Loading branch information
1 parent
1ca1805
commit 94c20f6
Showing
6 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from . import account_move | ||
from . import account_move_line | ||
from . import res_partner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from odoo import fields, models | ||
|
||
|
||
class ResPartner(models.Model): | ||
_inherit = "res.partner" | ||
|
||
audi_supplier_email = fields.Char(string="Supplier Email") | ||
audi_supplier_number = fields.Char(string="Supplier Number") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<odoo> | ||
<record id="view_res_partner_form_inherit_addenda_audi" model="ir.ui.view"> | ||
<field name="name">res.partner.form.inherit.addenda.audi</field> | ||
<field name="model">res.partner</field> | ||
<field name="inherit_id" ref="base.view_partner_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='category_id']" position="after"> | ||
<field name="l10n_mx_edi_addenda_name" invisible="1" /> | ||
<field | ||
name="audi_supplier_email" | ||
invisible="not l10n_mx_edi_addenda_name == 'Addenda Audi'" | ||
/> | ||
<field | ||
name="audi_supplier_number" | ||
invisible="not l10n_mx_edi_addenda_name == 'Addenda Audi'" | ||
/> | ||
</xpath> | ||
</field> | ||
</record> | ||
</odoo> |