-
-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] l10n_it_account_stamp: Migration to 16.0
- Loading branch information
Showing
9 changed files
with
162 additions
and
194 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,30 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<data noupdate="1"> | ||
<odoo noupdate="1"> | ||
|
||
<record id="l10n_it_account_stamp_2_euro" model="product.product"> | ||
<field name="name">Tax Stamp 2 euro</field> | ||
<field name="type">service</field> | ||
<field name="list_price" eval="2.0" /> | ||
<field name="standard_price" eval="2.0" /> | ||
<field | ||
name="description_sale" | ||
>Stamp duty payment under the terms of Art. 6, Subsection 2 of MEF Decree June | ||
17, 2014 | ||
</field> | ||
<field name="is_stamp" eval="True" /> | ||
<field name="auto_compute" eval="True" /> | ||
<field name="stamp_apply_min_total_base" eval="77.47" /> | ||
<field name="taxes_id" eval="[(6, 0, [])]" /> | ||
<field name="supplier_taxes_id" eval="[(6, 0, [])]" /> | ||
</record> | ||
<record id="l10n_it_account_stamp_2_euro" model="product.product"> | ||
<field name="name">Tax Stamp 2 euro</field> | ||
<field name="type">service</field> | ||
<field name="list_price" eval="2.0" /> | ||
<field name="standard_price" eval="2.0" /> | ||
<field | ||
name="description_sale" | ||
>Stamp duty payment under the terms of Art. 6, Subsection 2 of MEF Decree June | ||
17, 2014 | ||
</field> | ||
<field name="is_stamp" eval="True" /> | ||
<field name="auto_compute" eval="True" /> | ||
<field name="stamp_apply_min_total_base" eval="77.47" /> | ||
<field name="taxes_id" eval="[(6, 0, [])]" /> | ||
<field name="supplier_taxes_id" eval="[(6, 0, [])]" /> | ||
</record> | ||
|
||
<record id="base.main_company" model="res.company"> | ||
<field | ||
name="tax_stamp_product_id" | ||
ref="l10n_it_account_stamp.l10n_it_account_stamp_2_euro" | ||
/> | ||
</record> | ||
<record id="base.main_company" model="res.company"> | ||
<field | ||
name="tax_stamp_product_id" | ||
ref="l10n_it_account_stamp.l10n_it_account_stamp_2_euro" | ||
/> | ||
</record> | ||
|
||
</data> | ||
</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
19 changes: 0 additions & 19 deletions
19
l10n_it_account_stamp/migrations/13.0.1.0.0/post-migrate.py
This file was deleted.
Oops, something went wrong.
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
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,57 +1,52 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<data> | ||
|
||
<!-- Form: Invoice Customer --> | ||
<record id="account_move_form_stamp" model="ir.ui.view"> | ||
<field name="name">account.move.form.stamp</field> | ||
<field name="model">account.move</field> | ||
<field name="inherit_id" ref="account.view_move_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath | ||
expr="//field[@name='invoice_line_ids']/tree/field[@name='sequence']" | ||
position="after" | ||
> | ||
<field name="is_stamp_line" invisible="1" /> | ||
</xpath> | ||
<xpath | ||
expr="//field[@name='invoice_line_ids']/tree" | ||
position="attributes" | ||
> | ||
<attribute name="colors">CadetBlue:is_stamp_line==True;</attribute> | ||
</xpath> | ||
<xpath expr="//group[@id='header_right_group']" position="inside"> | ||
<field name="auto_compute_stamp" invisible="1" /> | ||
<field name="tax_stamp" string="Tax stamp" invisible="1" /> | ||
<field | ||
name="manually_apply_tax_stamp" | ||
attrs="{'invisible': [('auto_compute_stamp', '=', True)]}" | ||
/> | ||
</xpath> | ||
<field name="narration" position="before"> | ||
<img | ||
src="/l10n_it_account_stamp/static/description/icon.png" | ||
alt="Tax stamp" | ||
attrs="{'invisible': [('tax_stamp', '=', False)]}" | ||
/> | ||
<button | ||
class="oe_edit_only" | ||
type="object" | ||
string="Add tax stamp line" | ||
name="add_tax_stamp_line" | ||
attrs="{'invisible': ['|',('tax_stamp', '=', False),('state', 'not in', 'draft')]}" | ||
/> | ||
<!--move narration down--> | ||
<div /> | ||
</field> | ||
<xpath | ||
expr="//form/sheet/notebook/page[@id='invoice_tab']/field/form/sheet/group/field[@name='product_id']" | ||
position="after" | ||
> | ||
<field name="is_stamp_line" invisible="1" /> | ||
</xpath> | ||
<!-- Form: Invoice Customer --> | ||
<record id="account_move_form_stamp" model="ir.ui.view"> | ||
<field name="name">account.move.form.stamp</field> | ||
<field name="model">account.move</field> | ||
<field name="inherit_id" ref="account.view_move_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath | ||
expr="//field[@name='invoice_line_ids']/tree/field[@name='sequence']" | ||
position="after" | ||
> | ||
<field name="is_stamp_line" invisible="1" /> | ||
</xpath> | ||
<xpath expr="//field[@name='invoice_line_ids']/tree" position="attributes"> | ||
<attribute name="colors">CadetBlue:is_stamp_line==True;</attribute> | ||
</xpath> | ||
<xpath expr="//group[@id='header_right_group']" position="inside"> | ||
<field name="auto_compute_stamp" invisible="1" /> | ||
<field name="tax_stamp" string="Tax stamp" invisible="1" /> | ||
<field | ||
name="manually_apply_tax_stamp" | ||
attrs="{'invisible': [('auto_compute_stamp', '=', True)]}" | ||
/> | ||
</xpath> | ||
<field name="narration" position="before"> | ||
<img | ||
src="/l10n_it_account_stamp/static/description/icon.png" | ||
alt="Tax stamp" | ||
attrs="{'invisible': [('tax_stamp', '=', False)]}" | ||
/> | ||
<button | ||
class="oe_edit_only" | ||
type="object" | ||
string="Add tax stamp line" | ||
name="add_tax_stamp_line" | ||
attrs="{'invisible': ['|',('tax_stamp', '=', False),('state', 'not in', 'draft')]}" | ||
/> | ||
<!--move narration down--> | ||
<div /> | ||
</field> | ||
</record> | ||
<xpath | ||
expr="//form/sheet/notebook/page[@id='invoice_tab']/field/form/sheet/group/field[@name='product_id']" | ||
position="after" | ||
> | ||
<field name="is_stamp_line" invisible="1" /> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
</data> | ||
</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,45 +1,44 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<data> | ||
<record model="ir.ui.view" id="view_account_config_settings_stamp"> | ||
<field name="name">view_account_config_settings_stamp</field> | ||
<field name="model">res.config.settings</field> | ||
<field name="inherit_id" ref="account.res_config_settings_view_form" /> | ||
<field name="arch" type="xml"> | ||
<div id="eu_service" position="after"> | ||
<div | ||
class="col-12 col-lg-6 o_setting_box" | ||
title="Configuration for Tax stamp" | ||
> | ||
<div class="o_setting_left_pane" /> | ||
<div class="o_setting_right_pane"> | ||
<span | ||
class="o_form_label" | ||
>Configuration for Tax stamp</span> | ||
<span | ||
class="fa fa-lg fa-building-o" | ||
title="Values set here are company-specific." | ||
aria-label="Values set here are company-specific." | ||
groups="base.group_multi_company" | ||
role="img" | ||
/> | ||
<div class="text-muted"> | ||
Product used as Tax Stamp in customer invoices | ||
</div> | ||
<div class="content-group"> | ||
<div class="row mt16"> | ||
<label | ||
string="Tax Stamp Product" | ||
for="tax_stamp_product_id" | ||
class="col-lg-3 o_light_label" | ||
/> | ||
<field name="tax_stamp_product_id" /> | ||
</div> | ||
|
||
<record model="ir.ui.view" id="view_account_config_settings_stamp"> | ||
<field name="name">view_account_config_settings_stamp</field> | ||
<field name="model">res.config.settings</field> | ||
<field name="inherit_id" ref="account.res_config_settings_view_form" /> | ||
<field name="arch" type="xml"> | ||
<div id="eu_service" position="after"> | ||
<div | ||
class="col-12 col-lg-6 o_setting_box" | ||
title="Configuration for Tax stamp" | ||
> | ||
<div class="o_setting_left_pane" /> | ||
<div class="o_setting_right_pane"> | ||
<span class="o_form_label">Configuration for Tax stamp | ||
</span> | ||
<span | ||
class="fa fa-lg fa-building-o" | ||
title="Values set here are company-specific." | ||
aria-label="Values set here are company-specific." | ||
groups="base.group_multi_company" | ||
role="img" | ||
/> | ||
<div class="text-muted"> | ||
Product used as Tax Stamp in customer invoices | ||
</div> | ||
<div class="content-group"> | ||
<div class="row mt16"> | ||
<label | ||
string="Tax Stamp Product" | ||
for="tax_stamp_product_id" | ||
class="col-lg-3 o_light_label" | ||
/> | ||
<field name="tax_stamp_product_id" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</field> | ||
</record> | ||
</data> | ||
</div> | ||
</field> | ||
</record> | ||
|
||
</odoo> |
Oops, something went wrong.