forked from OCA/l10n-italy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
porting l10n_it_account_tax_kind to 10.0
ADD law_reference
- Loading branch information
Showing
8 changed files
with
67 additions
and
84 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,8 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright (C) 2017 Apulia Software s.r.l. (http://www.apuliasoftware.it) | ||
# @author Francesco Apruzzese <f.apruzzese@apuliasoftware.it> | ||
# | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). | ||
|
||
from . import model |
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,9 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright (C) 2017 Apulia Software s.r.l. (http://www.apuliasoftware.it) | ||
# @author Francesco Apruzzese <f.apruzzese@apuliasoftware.it> | ||
# | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). | ||
|
||
from . import account_tax_kind | ||
from . import account |
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,15 +1,12 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright (C) 2017 Apulia Software s.r.l. (http://www.apuliasoftware.it) | ||
# @author Francesco Apruzzese <f.apruzzese@apuliasoftware.it> | ||
# | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). | ||
|
||
from openerp import models, fields | ||
from odoo import models, fields | ||
|
||
|
||
class AccountTax(models.Model): | ||
|
||
_inherit = 'account.tax' | ||
|
||
kind_id = fields.Many2one('account.tax.kind', string="Kind") | ||
law_reference = fields.Char('Law reference') |
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,46 +1,44 @@ | ||
<?xml version="1.0" ?> | ||
<openerp> | ||
<data> | ||
<odoo> | ||
|
||
<record id="view_account_tax_kind_tree" model="ir.ui.view"> | ||
<field name="name">account.tax.kind.tree</field> | ||
<field name="model">account.tax.kind</field> | ||
<field name="arch" type="xml"> | ||
<tree string="Account Tax Kind"> | ||
<record id="view_account_tax_kind_tree" model="ir.ui.view"> | ||
<field name="name">account.tax.kind.tree</field> | ||
<field name="model">account.tax.kind</field> | ||
<field name="arch" type="xml"> | ||
<tree string="Account Tax Kind"> | ||
<field name="code"/> | ||
<field name="name"/> | ||
</tree> | ||
</field> | ||
</record> | ||
|
||
<record id="view_account_tax_kind_form" model="ir.ui.view"> | ||
<field name="name">account.tax.kind.form</field> | ||
<field name="model">account.tax.kind</field> | ||
<field name="arch" type="xml"> | ||
<form string="Account Tax Kind"> | ||
<group> | ||
<field name="code"/> | ||
<field name="name"/> | ||
</tree> | ||
</field> | ||
</record> | ||
|
||
<record id="view_account_tax_kind_form" model="ir.ui.view"> | ||
<field name="name">account.tax.kind.form</field> | ||
<field name="model">account.tax.kind</field> | ||
<field name="arch" type="xml"> | ||
<form string="Account Tax Kind"> | ||
<group> | ||
<field name="code"/> | ||
<field name="name"/> | ||
</group> | ||
</form> | ||
</field> | ||
</record> | ||
</group> | ||
</form> | ||
</field> | ||
</record> | ||
|
||
<record model="ir.actions.act_window" id="view_account_tax_kind_action"> | ||
<field name="name">Account Tax Kind</field> | ||
<field name="type">ir.actions.act_window</field> | ||
<field name="res_model">account.tax.kind</field> | ||
<field name="view_type">form</field> | ||
<field name="view_mode">tree,form</field> | ||
<field name="view_id" ref="view_account_tax_kind_tree"/> | ||
</record> | ||
<record model="ir.actions.act_window" id="view_account_tax_kind_action"> | ||
<field name="name">Account Tax Kind</field> | ||
<field name="type">ir.actions.act_window</field> | ||
<field name="res_model">account.tax.kind</field> | ||
<field name="view_type">form</field> | ||
<field name="view_mode">tree,form</field> | ||
<field name="view_id" ref="view_account_tax_kind_tree"/> | ||
</record> | ||
|
||
<menuitem id="account_tax_kind_menu" | ||
parent="account.next_id_27" | ||
name="Account Tax Kind" | ||
action="view_account_tax_kind_action" | ||
groups="account.group_account_manager" | ||
sequence="40"/> | ||
<menuitem id="account_tax_kind_menu" | ||
parent="l10n_it_account.account_italian_localization" | ||
name="Account Tax Kind" | ||
action="view_account_tax_kind_action" | ||
groups="account.group_account_manager" | ||
sequence="40"/> | ||
|
||
</data> | ||
</openerp> | ||
</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 |
---|---|---|
@@ -1,17 +1,16 @@ | ||
<?xml version="1.0" ?> | ||
<openerp> | ||
<data> | ||
<odoo> | ||
|
||
<record id="view_tax_form_account_tax_kind" model="ir.ui.view"> | ||
<field name="name">account.tax.form.account.tax.kind</field> | ||
<field name="model">account.tax</field> | ||
<field name="inherit_id" ref="account.view_tax_form"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='sequence']" position="after"> | ||
<field name="kind_id" /> | ||
</xpath> | ||
</field> | ||
</record> | ||
<record id="view_tax_form_account_tax_kind" model="ir.ui.view"> | ||
<field name="name">account.tax.form.account.tax.kind</field> | ||
<field name="model">account.tax</field> | ||
<field name="inherit_id" ref="account.view_tax_form"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='tag_ids']" position="after"> | ||
<field name="kind_id" /> | ||
<field name="law_reference" attrs="{'required': [('kind_id', '!=', False),('type_tax_use', '!=', 'purchase')], 'invisible': ['|',('kind_id', '=', False),('type_tax_use', '=', 'purchase')]}"></field> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
</data> | ||
</openerp> | ||
</odoo> |