-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] account_avatax_exemption: Hide Exemption Code info
- Loading branch information
1 parent
9243cb0
commit 9bac8be
Showing
5 changed files
with
172 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<odoo noupdate="1"> | ||
|
||
<record id="group_show_tax_exempt_exempt_number_exempt_code" model="res.groups"> | ||
<field name="name">Show Tax Exempt/Exemption number/Exemption code </field> | ||
<field | ||
name="comment" | ||
>Show the Exemption fields on SO and Invoice and Contact</field> | ||
<field | ||
name="users" | ||
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]" | ||
/> | ||
</record> | ||
|
||
</odoo> |
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,38 @@ | ||
<odoo> | ||
|
||
<record id="exemption_hide_view_move_form_inherit_1" model="ir.ui.view"> | ||
<field name="name">account.move.form.view.exemption.hide</field> | ||
<field name="model">account.move</field> | ||
<field name="inherit_id" ref="account_avatax_oca.view_move_form_inherit_1" /> | ||
<field name="arch" type="xml"> | ||
<field name='exemption_code' position="attributes"> | ||
<attribute name="invisible">1</attribute> | ||
</field> | ||
<field name='exemption_code_id' position="attributes"> | ||
<attribute name="invisible">1</attribute> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
<record model="ir.ui.view" id="exemption_hide_view_move_form_with_group_inherit_1"> | ||
<field name="name">account.move.form.view.exemption.hide_with_group</field> | ||
<field name="model">account.move</field> | ||
<field | ||
name="inherit_id" | ||
ref="account_avatax_exemption.exemption_hide_view_move_form_inherit_1" | ||
/> | ||
<field | ||
name="groups_id" | ||
eval="[(4,ref('account_avatax_exemption.group_show_tax_exempt_exempt_number_exempt_code'))]" | ||
/> | ||
<field name="arch" type="xml"> | ||
<field name='exemption_code' position="attributes"> | ||
<attribute name="invisible">0</attribute> | ||
</field> | ||
<field name='exemption_code_id' position="attributes"> | ||
<attribute name="invisible">0</attribute> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
</odoo> |
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,47 @@ | ||
<odoo> | ||
|
||
<record | ||
id="account_avatax_sale_oca_order_form_view_editable_field" | ||
model="ir.ui.view" | ||
> | ||
<field name="name">account_avatax_oca.oca.sale.order.form.view.editable</field> | ||
<field name="model">sale.order</field> | ||
<field | ||
name="inherit_id" | ||
ref="account_avatax_sale_oca.sale_order_update_form_view" | ||
/> | ||
<field name="arch" type="xml"> | ||
<field name='exemption_code' position="attributes"> | ||
<attribute name="invisible">1</attribute> | ||
</field> | ||
<field name='exemption_code_id' position="attributes"> | ||
<attribute name="invisible">1</attribute> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
<record | ||
model="ir.ui.view" | ||
id="account_avatax_sale_oca_order_form_view_hidden_field" | ||
> | ||
<field name="name">account_avatax_oca.oca.sale.order.form.view.hidden</field> | ||
<field name="model">sale.order</field> | ||
<field | ||
name="inherit_id" | ||
ref="account_avatax_exemption.account_avatax_sale_oca_order_form_view_editable_field" | ||
/> | ||
<field | ||
name="groups_id" | ||
eval="[(4,ref('account_avatax_exemption.group_show_tax_exempt_exempt_number_exempt_code'))]" | ||
/> | ||
<field name="arch" type="xml"> | ||
<field name='exemption_code' position="attributes"> | ||
<attribute name="invisible">0</attribute> | ||
</field> | ||
<field name='exemption_code_id' position="attributes"> | ||
<attribute name="invisible">0</attribute> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
</odoo> |