19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:21 +01:00
parent 7dc55599c6
commit 7f43bbbfcc
650 changed files with 45260 additions and 33436 deletions

View file

@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_invoice_document" inherit_id="account.report_invoice_document" primary="True">
<t name="invoice_title" position="replace">
<t name="invoice_title">Tax Invoice</t>
</t>
<t name="draft_invoice_title" position="replace">
<t name="draft_invoice_title">Draft Tax Invoice</t>
</t>
<t name="cancelled_invoice_title" position="replace">
<t name="cancelled_invoice_title">Cancelled Tax Invoice</t>
</t>
<t name="credit_note_title" position="replace">
<t name="credit_note_title">Tax Credit Note</t>
</t>
<t name="draft_credit_note_title" position="replace">
<t name="draft_credit_note_title">Draft Tax Credit Note</t>
</t>
<t name="cancelled_credit_note_title" position="replace">
<t name="cancelled_credit_note_title">Cancelled Tax Credit Note</t>
</t>
<t name="vendor_credit_note_title" position="replace">
<t name="vendor_credit_note_title">Tax Vendor Credit Note</t>
</t>
<t name="vendor_bill_title" position="replace">
<t name="vendor_bill_title">Tax Vendor Bill</t>
</t>
<t name="proforma_invoice_title" position="replace">
<t name="proforma_invoice_title">Proforma Tax Invoice</t>
</t>
<t name="draft_proforma_invoice_title" position="replace">
<t name="draft_proforma_invoice_title">Draft Proforma Tax Invoice</t>
</t>
<t name="cancelled_proforma_invoice_title" position="replace">
<t name="cancelled_proforma_invoice_title">Cancelled Proforma Tax Invoice</t>
</t>
<t name="proforma_credit_note_title" position="replace">
<t name="proforma_credit_note_title">Proforma Tax Credit Note</t>
</t>
<t name="draft_proforma_credit_note_title" position="replace">
<t name="draft_proforma_credit_note_title">Draft Proforma Tax Credit Note</t>
</t>
<t name="cancelled_proforma_credit_note_title" position="replace">
<t name="cancelled_proforma_credit_note_title">Cancelled Proforma Tax Credit Note</t>
</t>
<t name="proforma_vendor_credit_note_title" position="replace">
<t name="proforma_vendor_credit_note_title">Proforma Tax Vendor Credit Note</t>
</t>
<t name="proforma_vendor_bill_title" position="replace">
<t name="proforma_vendor_bill_title">Proforma Tax Vendor Bill</t>
</t>
</template>
<!-- Workaround for Studio reports, see odoo/odoo#60660 -->
<template id="report_invoice" inherit_id="account.report_invoice">
<xpath expr='//t[@t-call="account.report_invoice_document"]' position="after">
<t t-elif="o._get_name_invoice_report() == 'l10n_nz.report_invoice_document'"
t-call="l10n_nz.report_invoice_document"
t-lang="lang"/>
</xpath>
</template>
</odoo>

View file

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_company_form_inherit_l10n_nz" model="ir.ui.view">
<field name="name">res.company.form.inherit.l10n_nz</field>
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='vat']" position="attributes">
<attribute name="invisible" add="country_code == 'NZ'" separator=" or "/>
</xpath>
<xpath expr="//field[@name='vat']" position="after">
<field name="vat" string="GST" invisible="country_code != 'NZ'"/>
</xpath>
<xpath expr="//field[@name='company_registry']" position="attributes">
<attribute name="invisible" add="country_code == 'NZ'" separator=" or "/>
</xpath>
<xpath expr="//field[@name='company_registry']" position="after">
<field name="company_registry" string="NZBN" invisible="country_code != 'NZ'"/>
</xpath>
</field>
</record>
</odoo>

View file

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_partner_form_inherit_l10n_nz" model="ir.ui.view">
<field name="name">res.partner.form.inherit.l10n_nz</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='company_registry']" position="attributes">
<attribute name="nolabel">1</attribute>
</xpath>
<field name="company_registry" position="before">
<label for="company_registry" invisible="country_code == 'NZ'" />
<label for="company_registry" string="NZBN" invisible="country_code != 'NZ'" />
</field>
</field>
</record>
</odoo>