mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-27 11:22:01 +02:00
19.0 vanilla
This commit is contained in:
parent
ff721d030e
commit
7721452493
1826 changed files with 124775 additions and 274114 deletions
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<template id="report_invoice_document" inherit_id="account.report_invoice_document">
|
||||
<!-- add company id to partner details-->
|
||||
<xpath expr="//div[@id='partner_vat_address_not_same_as_shipping']" position="before">
|
||||
<div t-if="o.partner_id.company_registry and o.company_id.country_code == 'CZ'">
|
||||
Company ID: <span t-field="o.partner_id.company_registry"/>
|
||||
</div>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[@id='partner_vat_address_same_as_shipping']" position="before">
|
||||
<div t-if="o.partner_id.company_registry and o.company_id.country_code == 'CZ'">
|
||||
Company ID: <span t-field="o.partner_id.company_registry"/>
|
||||
</div>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[@id='partner_vat_no_shipping']" position="before">
|
||||
<div t-if="o.partner_id.company_registry and o.company_id.country_code == 'CZ'">
|
||||
Company ID: <span t-field="o.partner_id.company_registry"/>
|
||||
</div>
|
||||
</xpath>
|
||||
|
||||
<!-- add trade registry-->
|
||||
<xpath expr="//div[@name='comment']" position="after">
|
||||
<p t-if="o.company_id.trade_registry and o.company_id.country_code == 'CZ'" name="trade_registry">
|
||||
<strong>Trade registry: </strong><t t-out="o.company_id.trade_registry"/>
|
||||
</p>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<template id="registry_vat_external_layout">
|
||||
<li t-if="company.company_registry and company.account_fiscal_country_id.code == 'CZ'">
|
||||
Company ID: <span t-field="company.company_registry"/>
|
||||
</li>
|
||||
<li t-if="company.vat and company.account_fiscal_country_id.code == 'CZ'">
|
||||
<t t-set="default_vat_label">Tax ID</t>
|
||||
<t t-out="company.country_id.vat_label or default_vat_label"/>:
|
||||
<span t-out="company.vat"/>
|
||||
</li>
|
||||
</template>
|
||||
|
||||
<template id="l10n_cz_external_layout_standard" inherit_id="web.external_layout_standard">
|
||||
<xpath expr="//ul[@name='company_address_list']" position="inside">
|
||||
<t t-call="l10n_cz.registry_vat_external_layout"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="l10n_cz_external_layout_bold" inherit_id="web.external_layout_bold">
|
||||
<xpath expr="//ul[@name='company_address_list']" position="inside">
|
||||
<t t-call="l10n_cz.registry_vat_external_layout"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="l10n_cz_external_layout_boxed" inherit_id="web.external_layout_boxed">
|
||||
<xpath expr="//ul[@name='company_address_list']" position="inside">
|
||||
<t t-call="l10n_cz.registry_vat_external_layout"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="l10n_cz_external_layout_striped" inherit_id="web.external_layout_striped">
|
||||
<xpath expr="//ul[@name='company_address_list']" position="inside">
|
||||
<t t-call="l10n_cz.registry_vat_external_layout"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="l10n_cz_external_layout_bubble" inherit_id="web.external_layout_bubble">
|
||||
<xpath expr="//ul[@name='company_address_list']" position="inside">
|
||||
<t t-call="l10n_cz.registry_vat_external_layout"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="l10n_cz_external_layout_wave" inherit_id="web.external_layout_wave">
|
||||
<xpath expr="//ul[@name='company_address_list']" position="inside">
|
||||
<t t-call="l10n_cz.registry_vat_external_layout"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="l10n_cz_external_layout_folder" inherit_id="web.external_layout_folder">
|
||||
<xpath expr="//div[hasclass('o_folder_company_info')]" position="after">
|
||||
<div t-if="company.company_registry and company.account_fiscal_country_id.code == 'CZ'">
|
||||
Company ID: <span t-field="company.company_registry"/>
|
||||
</div>
|
||||
<div t-if="company.vat and company.account_fiscal_country_id.code == 'CZ'">
|
||||
<t t-set="default_vat_label">Tax ID</t>
|
||||
<t t-out="company.country_id.vat_label or default_vat_label"/>:
|
||||
<span t-out="company.vat"/>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="view_company_form_inherit_l10n_ck" model="ir.ui.view">
|
||||
<field name="name">res.company.form.inherit.l10n_ck</field>
|
||||
<field name="inherit_id" ref="base.view_company_form"/>
|
||||
<field name="model">res.company</field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="currency_id" position="after">
|
||||
<field name="trade_registry" invisible="country_code != 'CZ'"/>
|
||||
</field>
|
||||
<field name="vat" position="after">
|
||||
<field name="l10n_cz_tax_office_id" invisible="country_code != 'CZ'"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="res_partner_view_form_inherit_l10n_cz" model="ir.ui.view">
|
||||
<field name="name">res.partner.view.form.inherit.l10n.cz</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="account.view_partner_property_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='vat']" position="before">
|
||||
<field name="company_registry" invisible="country_code != 'CZ'"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="view_l10n_cz_tax_office_tree" model="ir.ui.view">
|
||||
<field name="name">l10n_cz.tax_office.tree</field>
|
||||
<field name="model">l10n_cz.tax_office</field>
|
||||
<field name="arch" type="xml">
|
||||
<list string="Tax Office">
|
||||
<field name="workplace_code"/>
|
||||
<field name="code"/>
|
||||
<field name="name"/>
|
||||
<field name="region"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_l10n_cz_tax_office_search" model="ir.ui.view">
|
||||
<field name="name">l10n_cz.tax_office.search</field>
|
||||
<field name="model">l10n_cz.tax_office</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="workplace_code"/>
|
||||
<field name="code"/>
|
||||
<field name="name"/>
|
||||
<field name="region"/>
|
||||
<filter name="group_by_region" string="By region" context="{'group_by': 'region'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_l10n_cz_tax_office_form" model="ir.ui.view">
|
||||
<field name="name">l10n_cz.tax_office.form</field>
|
||||
<field name="model">l10n_cz.tax_office</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Tax Office">
|
||||
<sheet>
|
||||
<h1><field name="name" options="{'line_breaks': False}" widget="text" placeholder="Tax office name" class="text-break" default_focus="1"/></h1>
|
||||
<group>
|
||||
<field name="workplace_code"/>
|
||||
<field name="code"/>
|
||||
<field name="region"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_l10n_cz_tax_office_tree" model="ir.actions.act_window">
|
||||
<field name="name">Tax Office</field>
|
||||
<field name="res_model">l10n_cz.tax_office</field>
|
||||
<field name="context">{'search_default_group_by_region': 1}</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<menuitem action="action_l10n_cz_tax_office_tree" id="menu_l10n_cz_tax_office" parent="account.account_invoicing_menu" sequence="40" groups="account.group_account_manager"/>
|
||||
</data>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue