mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-27 13:12:04 +02:00
19.0 vanilla
This commit is contained in:
parent
89c6e82fe7
commit
1b82c20a58
572 changed files with 43570 additions and 53303 deletions
|
|
@ -17,54 +17,39 @@
|
|||
<field name="inherit_id" ref="l10n_latam_invoice_document.view_move_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="l10n_latam_document_number" position="attributes">
|
||||
<attribute name="attrs">{
|
||||
'invisible': [
|
||||
'|',
|
||||
('l10n_latam_use_documents', '=', False),
|
||||
('l10n_latam_manual_document_number', '=', False),
|
||||
'|', '|',
|
||||
('l10n_latam_use_documents', '=', False),
|
||||
('highest_name', '!=', False),
|
||||
('state', '!=', 'draft'),
|
||||
'|', '|', '|',
|
||||
('l10n_latam_use_documents', '=', False),
|
||||
('posted_before', '=', False),
|
||||
('state', '!=', 'draft'),
|
||||
('country_code', '!=', 'CL')
|
||||
],
|
||||
'readonly': [('posted_before', '=', True), ('state', '!=', 'draft')],
|
||||
'required': ['|', ('l10n_latam_manual_document_number', '=', True), ('highest_name', '=', False)]}
|
||||
</attribute>
|
||||
<attribute name="invisible" add="(not l10n_latam_use_documents or not posted_before or state != 'draft' or country_code != 'CL')" separator=" and "/>
|
||||
<attribute name="readonly">posted_before and state != 'draft'</attribute>
|
||||
<attribute name="required">l10n_latam_manual_document_number</attribute>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_complete_invoice_refund_tree" model="ir.ui.view">
|
||||
<field name="name">account.move.tree2</field>
|
||||
<field name="name">account.move.list2</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree decoration-info="state == 'draft'" default_order="create_date" string="Invoices and Refunds" decoration-muted="state == 'cancel'" js_class="account_tree">
|
||||
<list decoration-info="state == 'draft'" default_order="create_date" string="Invoices and Refunds" decoration-muted="state == 'cancel'" js_class="account_tree">
|
||||
<field name="l10n_latam_document_type_id_code"/>
|
||||
<field name="l10n_latam_document_number" string="Folio"/>
|
||||
<field name="l10n_latam_document_number" string="Folio" readonly="state != 'draft'"/>
|
||||
<field name="partner_id_vat"/>
|
||||
<field name="partner_id"/>
|
||||
<field name="invoice_date" optional="show"/>
|
||||
<field name="partner_id" readonly="state != 'draft'"/>
|
||||
<field name="invoice_date" optional="show" readonly="state != 'draft'"/>
|
||||
<field name="invoice_date_due" optional="show"/>
|
||||
<field name="date" string="Accounting Date" optional="show"/>
|
||||
<field name="date" string="Accounting Date" optional="show" readonly="state in ['cancel', 'posted']"/>
|
||||
<field name="payment_reference" optional="hide"/>
|
||||
<field name="invoice_user_id" optional="show" invisible="context.get('default_move_type') not in ('out_invoice', 'out_refund','out_receipt')" string="Sales Person"/>
|
||||
<field name="invoice_user_id" optional="show" column_invisible="context.get('default_move_type') not in ('out_invoice', 'out_refund', 'out_receipt')" string="Sales Person"/>
|
||||
<field name="company_id" groups="base.group_multi_company" options="{'no_create': True}" optional="show"/>
|
||||
<field name="invoice_origin" optional="show" string="Source Document"/>
|
||||
<field name="amount_untaxed_signed" string="Amount Untaxed" sum="Total" optional="show"/>
|
||||
<field name="amount_tax_signed" string="Tax" sum="Total" optional="show"/>
|
||||
<field name="amount_total_signed" string="Total" sum="Total" optional="show"/>
|
||||
<field name="amount_residual_signed" string="Amount Due" sum="Amount Due" optional="show"/>
|
||||
<field name="currency_id" invisible="1"/>
|
||||
<field name="company_currency_id" invisible="1"/>
|
||||
<field name="currency_id" column_invisible="True" readonly="state in ['cancel', 'posted']"/>
|
||||
<field name="company_currency_id" column_invisible="True"/>
|
||||
<field name="state" optional="show"/>
|
||||
<field name="payment_state" optional="hide"/>
|
||||
<field name="move_type" invisible="context.get('default_move_type', True)"/>
|
||||
</tree>
|
||||
<field name="move_type" column_invisible="context.get('default_move_type', True)"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
@ -75,7 +60,7 @@
|
|||
<field name="domain">[('move_type', 'in', ['out_invoice', 'out_refund'])]</field>
|
||||
<field name="context">{'default_move_type': 'out_invoice'}</field>
|
||||
<field name="target">current</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="vendor_bills_and_refunds">
|
||||
|
|
@ -85,7 +70,7 @@
|
|||
<field name="domain">[('move_type', 'in', ['in_invoice', 'in_refund'])]</field>
|
||||
<field name="context">{'default_move_type': 'in_invoice'}</field>
|
||||
<field name="target">current</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="menu_sale_invoices_credit_notes" parent="account.menu_finance_receivables" sequence="3" action="sale_invoices_credit_notes" name="Sale Invoices and Credit Notes (CL)"/>
|
||||
|
|
|
|||
|
|
@ -7,42 +7,20 @@
|
|||
<field name="inherit_id" ref="account.view_tax_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="after">
|
||||
<field name="l10n_cl_sii_code" options="{'format': false}" attrs="{'invisible': [('country_code', '!=', 'CL')]}"/>
|
||||
<field name="l10n_cl_sii_code" options="{'format': false}" invisible="country_code != 'CL'"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_tax_sii_code_tree" model="ir.ui.view">
|
||||
<field name="name">account.tax.sii.code.tree</field>
|
||||
<field name="name">account.tax.sii.code.list</field>
|
||||
<field name="model">account.tax</field>
|
||||
<field name="inherit_id" ref="account.view_tax_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="before">
|
||||
<field name="l10n_cl_sii_code" options="{'format': false}"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_account_tax_template_form" model="ir.ui.view">
|
||||
<field name="name">account.tax.template.form</field>
|
||||
<field name="model">account.tax.template</field>
|
||||
<field name="inherit_id" ref="account.view_account_tax_template_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="after">
|
||||
<field name="l10n_cl_sii_code" options="{'format': false}"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_account_tax_template_tree" model="ir.ui.view">
|
||||
<field name="name">account.tax.template.sii.tree</field>
|
||||
<field name="model">account.tax.template</field>
|
||||
<field name="inherit_id" ref="account.view_account_tax_template_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="before">
|
||||
<field name="l10n_cl_sii_code" options="{'format': false}"/>
|
||||
<field name="l10n_cl_sii_code" options="{'format': false}" optional="hide"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
</odoo>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<t t-call="l10n_cl.custom_footer"/>
|
||||
</t>
|
||||
|
||||
<div>
|
||||
<div class="mb-3">
|
||||
<div class="row">
|
||||
<div name="left-upper-side" class="col-8">
|
||||
<img t-if="o.company_id.logo" t-att-src="image_data_uri(o.company_id.logo)"
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
<br/>
|
||||
<span name="company_activity" class="fst-italic" t-field="o.company_id.report_header"/>
|
||||
<div/>
|
||||
<t t-esc="' - '.join([item for item in [
|
||||
<t t-out="' - '.join([item for item in [
|
||||
', '.join([item for item in [header_address.street, header_address.street2] if item]),
|
||||
header_address.city,
|
||||
header_address.state_id and header_address.state_id.name,
|
||||
|
|
@ -35,29 +35,29 @@
|
|||
<br/>
|
||||
</span>
|
||||
<span t-if="header_address.phone" style="white-space: nowrap;"
|
||||
t-esc="'Tel: ' + header_address.phone"/>
|
||||
t-out="'Tel: ' + header_address.phone"/>
|
||||
<span t-if="header_address.website">
|
||||
<span t-att-style="'color: %s;' % o.company_id.primary_color"
|
||||
t-esc="'- Web: %s' %' - '.join([item for item in [header_address.website.replace('https://', '').replace('http://', ''), header_address.email] if item])"/>
|
||||
t-out="'- Web: %s' %' - '.join([item for item in [header_address.website.replace('https://', '').replace('http://', ''), header_address.email] if item])"/>
|
||||
</span>
|
||||
</div>
|
||||
<div name="right-upper-side" class="col-4">
|
||||
<div class="row">
|
||||
<div name="right-upper-side" class="col-12">
|
||||
<div class="row border border-4 border-dark">
|
||||
<div class="row border border-4 border-dark" style="max-width: 100%;">
|
||||
<div class="col-12 text-center">
|
||||
<h6 style="color: black;">
|
||||
<strong>
|
||||
<br/>
|
||||
<span style="font-family:arial; line-height: 180%;">RUT:</span>
|
||||
<t t-if="o.company_id.partner_id.vat">
|
||||
<span style="font-family:arial;" t-esc="o.company_id.partner_id._format_dotted_vat_cl(o.company_id.partner_id.vat)"/>
|
||||
<span style="font-family:arial;" t-out="o.company_id.partner_id._format_dotted_vat_cl(o.company_id.partner_id.vat)"/>
|
||||
</t>
|
||||
<br/>
|
||||
<span style="font-family:arial;" class="text-uppercase" t-esc="report_name"/>
|
||||
<span style="font-family:arial;" class="text-uppercase" t-out="report_name"/>
|
||||
<br/>
|
||||
<span>Nº:</span>
|
||||
<span style="font-family:arial;line-height: 200%;" t-esc="report_number"/>
|
||||
<span style="font-family:arial;line-height: 200%;" t-out="report_number"/>
|
||||
</strong>
|
||||
</h6>
|
||||
</div>
|
||||
|
|
@ -82,32 +82,28 @@
|
|||
<strong>
|
||||
<span t-att-style="'color: %s;' % o.company_id.secondary_color">Date:</span>
|
||||
</strong>
|
||||
<span t-esc="o.invoice_date" t-options='{"widget": "date"}'/>
|
||||
<span t-out="o.invoice_date" t-options='{"widget": "date"}'/>
|
||||
<br/>
|
||||
|
||||
<strong>Customer:</strong>
|
||||
<span t-field="o.partner_id.name"/>
|
||||
<span t-out="o.partner_id.commercial_partner_id.name or o.partner_id.name"/>
|
||||
<br/>
|
||||
|
||||
<t t-if="o.partner_id.vat and o.partner_id.l10n_latam_identification_type_id">
|
||||
<strong>
|
||||
<t t-esc="o.partner_id.l10n_latam_identification_type_id.name or o.company_id.account_fiscal_country_id.vat_label" id="inv_tax_id_label"/>:
|
||||
<t t-out="o.partner_id.l10n_latam_identification_type_id.name or o.company_id.account_fiscal_country_id.vat_label" id="inv_tax_id_label"/>:
|
||||
</strong>
|
||||
<span t-esc="o.partner_id.vat"/>
|
||||
<span t-out="o.partner_id.vat"/>
|
||||
<br/>
|
||||
</t>
|
||||
<strong>Address:</strong>
|
||||
<span t-esc="o.partner_id._display_address(without_company=True)"/>
|
||||
<span t-out="o.partner_id._display_address(without_company=True)"/>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<strong>Due Date:</strong>
|
||||
<span t-esc="o.invoice_date_due" t-options='{"widget": "date"}'/>
|
||||
<span t-out="o.invoice_date_due" t-options='{"widget": "date"}'/>
|
||||
<br/>
|
||||
|
||||
<strong>Payment Terms:</strong>
|
||||
<span t-esc="o.invoice_payment_term_id.name or ''"/>
|
||||
|
||||
|
||||
<t t-if="o.invoice_incoterm_id">
|
||||
<br/>
|
||||
<strong>Incoterm:</strong>
|
||||
|
|
@ -117,11 +113,11 @@
|
|||
<t t-if="o.partner_shipping_id and o.partner_id not in o.partner_shipping_id" >
|
||||
<br/>
|
||||
<strong>Delivery Address:</strong>
|
||||
<span t-esc="o.partner_shipping_id._display_address(without_company=True)"/>
|
||||
<span t-out="o.partner_shipping_id._display_address(without_company=True)"/>
|
||||
</t>
|
||||
<br/>
|
||||
<strong>GIRO:</strong>
|
||||
<span t-esc="o.partner_id.industry_id.name or ''"/>
|
||||
<span t-out="o.partner_id.industry_id.name or ''"/>
|
||||
</div>
|
||||
</div>
|
||||
<div id="references" class="row">
|
||||
|
|
@ -150,11 +146,11 @@
|
|||
<div name="no_shipping"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//h2" position="replace"/>
|
||||
<xpath expr="//t[@t-set='layout_document_title']" position="replace"/>
|
||||
|
||||
<t t-set="current_subtotal" t-value="current_subtotal + line.price_subtotal" position="before">
|
||||
<xpath expr="//t[@t-foreach='lines_to_report']/t" position="before">
|
||||
<t t-set="line_amounts" t-value="line._l10n_cl_get_line_amounts()"/>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//span[@t-field='line.price_unit']" position="before">
|
||||
<t t-if="'second_currency' in line_amounts" t-set="line_second_currency_round" t-value="line_amounts['second_currency']['round_currency']"/>
|
||||
|
|
@ -162,37 +158,37 @@
|
|||
|
||||
<xpath expr="//span[@t-field='line.price_unit']" position="attributes">
|
||||
<attribute name="t-field"></attribute>
|
||||
<attribute t-if="not o.l10n_latam_document_type_id._is_doc_type_electronic_ticket()" name="t-esc">line_amounts['price_item_document']</attribute>
|
||||
<attribute name="t-options">{"widget": "float", "precision": 2}</attribute>
|
||||
<attribute name="t-out">line_amounts['price_item_document']</attribute>
|
||||
<attribute name="t-options">{"widget": "float", "precision": line_amounts['main_currency'].decimal_places}</attribute>
|
||||
</xpath>
|
||||
|
||||
<th name="th_price_unit" t-if="display_discount" t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}" position="after">
|
||||
<th name="th_price_unit" t-if="display_discount" t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
||||
<xpath expr="//th[@name='th_discount']" position="after">
|
||||
<th name="th_discount_currency" t-if="display_discount" t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
||||
<span>Disc.</span>
|
||||
</th>
|
||||
</th>
|
||||
</xpath>
|
||||
|
||||
<td t-if="display_discount" t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}" position="after">
|
||||
<td t-if="display_discount" t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}">
|
||||
<span class="text-nowrap" t-esc="line_amounts['total_discount']" t-options="{'widget': 'monetary', 'display_currency': line_amounts['main_currency']}"/>
|
||||
<td name="td_discount" t-if="display_discount" t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}" position="after">
|
||||
<td name="td_discount_currency" t-if="display_discount" t-attf-class="text-end {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}" position="after">
|
||||
<span class="text-nowrap" t-out="line_amounts['total_discount']" t-options="{'widget': 'monetary', 'display_currency': line_amounts['main_currency']}"/>
|
||||
</td>
|
||||
</td>
|
||||
|
||||
|
||||
<xpath expr="//span[@id='line_tax_ids']" position="attributes">
|
||||
<attribute name="t-esc">', '.join(map(lambda x: (x.description or x.name), line.tax_lines))</attribute>
|
||||
<attribute name="t-out">', '.join(map(lambda x: (x.description or x.name), line.tax_lines))</attribute>
|
||||
</xpath>
|
||||
|
||||
<span t-field="line.price_subtotal" position="attributes">
|
||||
<attribute name="t-field"/>
|
||||
<attribute name="t-esc">line_amounts['price_line_document']</attribute>
|
||||
<attribute name="t-out">line_amounts['price_line_document']</attribute>
|
||||
<attribute name="t-options">{"widget": "monetary", "display_currency": line_amounts['main_currency']}</attribute>
|
||||
</span>
|
||||
|
||||
<xpath expr="//th[@name='th_taxes']" position="replace"/>
|
||||
<xpath expr="//span[@id='line_tax_ids']/.." position="replace"/>
|
||||
|
||||
<div name="payment_term" position="replace"/>
|
||||
<!-- To remove? <div name="payment_term" position="replace"/>-->
|
||||
<xpath expr="//span[@t-field='o.payment_reference']/../.." position="replace"/>
|
||||
|
||||
<!-- replace information section and usage chilean style -->
|
||||
|
|
@ -200,23 +196,14 @@
|
|||
<t t-call="l10n_cl.informations"/>
|
||||
</div>
|
||||
|
||||
<!-- we remove the ml auto and also give more space to avoid multiple lines on tax detail -->
|
||||
<xpath expr="//div[@id='total']/div" position="attributes">
|
||||
<attribute name="t-attf-class">#{'col-6' if report_type != 'html' else 'col-sm-7 col-md-6'}</attribute>
|
||||
<xpath expr="//div[@id='right-elements']" position="after">
|
||||
<div name="stamp" class="col-6 text-center"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[@id='total']/div" position="before">
|
||||
<div t-attf-class="#{'col-6' if report_type != 'html' else 'col-sm-7 col-md-6'}"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[@id='total']/div" position="inside">
|
||||
<div name="stamp" class="col-11 text-center"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[@id='total']//div//table" position="after">
|
||||
<xpath expr="//div[@id='right-elements']" position="inside">
|
||||
<div class="row">
|
||||
<div class="col-12 text-end" t-if="o.l10n_latam_document_type_id.code == '39'" name="vat_boleta">
|
||||
The VAT tax of this boleta is: <span t-esc="o._l10n_cl_get_amounts()['vat_amount']" t-options="{'widget': 'monetary', 'display_currency': o.currency_id}"/>.
|
||||
<div class="col-12 text-center" t-if="o.l10n_latam_document_type_id.code == '39'" name="vat_boleta">
|
||||
The VAT tax of this boleta is: <span t-out="o._l10n_cl_get_amounts()['vat_amount']" t-options="{'widget': 'monetary', 'display_currency': o.currency_id}"/>.
|
||||
</div>
|
||||
<div name="transferable-table" class="col-6"/>
|
||||
<div name="transferable-legend" class="col-6 text-end"/>
|
||||
|
|
@ -226,7 +213,7 @@
|
|||
<xpath expr="//span[@t-field='line.name']" position="replace">
|
||||
<t t-set="all_taxes" t-value="'all_taxes'"/>
|
||||
<t t-if="'second_currency' in line_amounts" t-set="line_second_currency_round" t-value="line_amounts['second_currency']['round_currency']"/>
|
||||
<span t-esc="line_amounts['line_description']" t-options="{'widget': 'text'}"/>
|
||||
<span t-out="line_amounts['line_description']" t-options="{'widget': 'text'}"/>
|
||||
</xpath>
|
||||
|
||||
<t t-call="account.document_tax_totals" position="attributes">
|
||||
|
|
@ -237,17 +224,11 @@
|
|||
|
||||
<!-- FIXME: Temp fix to allow fetching invoice_documemt in Studio Reports with localisation -->
|
||||
<template id="report_invoice" inherit_id="account.report_invoice">
|
||||
<xpath expr='//t[@t-call="account.report_invoice_document"]' position="after">
|
||||
<xpath expr="//t[@t-call='account.report_invoice_document']" position="after">
|
||||
<t t-if="o._get_name_invoice_report() == 'l10n_cl.report_invoice_document'"
|
||||
t-call="l10n_cl.report_invoice_document" t-lang="lang"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="report_invoice_with_payments" inherit_id="account.report_invoice_with_payments">
|
||||
<xpath expr='//t[@t-call="account.report_invoice_document"]' position="after">
|
||||
<t t-if="o._get_name_invoice_report() == 'l10n_cl.report_invoice_document'"
|
||||
t-call="l10n_cl.report_invoice_document" t-lang="lang"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="tax_totals_widget" inherit_id="account.document_tax_totals" primary="True">
|
||||
|
|
@ -255,35 +236,35 @@
|
|||
<t t-set="subtotal_amounts" t-value="o._l10n_cl_get_amounts()"/>
|
||||
<t t-set="withholdings" t-value="o._l10n_cl_get_withholdings()"/>
|
||||
<t t-if="subtotal_amounts['subtotal_amount_taxable'] != 0.0">
|
||||
<tr class="border-black is-subtotal"><td><strong>Net Amount</strong></td><td class="text-end oe_subtotal_footer_separator" t-esc="subtotal_amounts['subtotal_amount_taxable']" t-options="{'widget': 'monetary', 'display_currency': subtotal_amounts['main_currency']}"/></tr>
|
||||
<tr class="border-black is-subtotal"><td><strong>Net Amount</strong></td><td class="text-end oe_subtotal_footer_separator" t-out="subtotal_amounts['subtotal_amount_taxable']" t-options="{'widget': 'monetary', 'display_currency': subtotal_amounts['main_currency']}"/></tr>
|
||||
</t>
|
||||
<t t-if="subtotal_amounts['subtotal_amount_exempt'] != 0.0">
|
||||
<tr class="border-black is-subtotal">
|
||||
<td><strong>Exempt Amount</strong></td>
|
||||
<td class="text-end oe_subtotal_footer_separator" t-esc="subtotal_amounts['subtotal_amount_exempt']"
|
||||
<td class="text-end oe_subtotal_footer_separator" t-out="subtotal_amounts['subtotal_amount_exempt']"
|
||||
t-options="{'widget': 'monetary', 'display_currency': subtotal_amounts['main_currency']}"/>
|
||||
</tr>
|
||||
</t>
|
||||
<t t-if="subtotal_amounts['vat_amount'] != 0.0">
|
||||
<tr>
|
||||
<td>VAT <t t-esc="subtotal_amounts['vat_percent']"/></td>
|
||||
<td class="text-end" t-esc="subtotal_amounts['vat_amount']"
|
||||
<td>VAT <t t-esc="subtotal_amounts['vat_percent']"/>%</td>
|
||||
<td class="text-end" t-out="subtotal_amounts['vat_amount']"
|
||||
t-options="{'widget': 'monetary', 'display_currency': subtotal_amounts['main_currency']}"/></tr>
|
||||
</t>
|
||||
<t t-foreach="withholdings" t-as="wh">
|
||||
<tr>
|
||||
<td t-esc="'%s (base %s)' % (wh['tax_name'], o._format_lang_totals(wh['tax_base'], subtotal_amounts['main_currency']))"/>
|
||||
<td class="text-end" t-esc="wh['tax_amount']" t-options="{'widget': 'monetary', 'display_currency': subtotal_amounts['main_currency']}"/></tr>
|
||||
<td t-out="'%s (base %s)' % (wh['tax_name'], o._format_lang_totals(wh['tax_base'], subtotal_amounts['main_currency']))"/>
|
||||
<td class="text-end" t-out="wh['tax_amount']" t-options="{'widget': 'monetary', 'display_currency': subtotal_amounts['main_currency']}"/></tr>
|
||||
</t>
|
||||
</t>
|
||||
<tr class="border-black o_total" position="replace">
|
||||
<tr class="border-black o_total">
|
||||
<tr class="o_total" position="replace">
|
||||
<tr class="o_total">
|
||||
<td><strong>Total</strong></td>
|
||||
<td class="text-end">
|
||||
<span t-esc="subtotal_amounts['total_amount']" t-options="{'widget': 'monetary', 'display_currency': subtotal_amounts['main_currency']}"/>
|
||||
<strong t-out="subtotal_amounts['total_amount']" t-options="{'widget': 'monetary', 'display_currency': subtotal_amounts['main_currency']}"/>
|
||||
</td>
|
||||
</tr>
|
||||
</tr>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
</odoo>
|
||||
|
|
|
|||
|
|
@ -8,21 +8,22 @@
|
|||
<field name="inherit_id" ref="base.view_res_bank_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="before">
|
||||
<field name="l10n_cl_sbif_code" />
|
||||
<field name="fiscal_country_codes" invisible="1"/>
|
||||
<field name="l10n_cl_sbif_code" invisible="'CL' not in fiscal_country_codes"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="view_res_bank_tree">
|
||||
<field name="name">bank.bank.tree</field>
|
||||
<field name="name">bank.bank.list</field>
|
||||
<field name="model">res.bank</field>
|
||||
<field name="inherit_id" ref="base.view_res_bank_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="before">
|
||||
<field name="l10n_cl_sbif_code" />
|
||||
<field name="l10n_cl_sbif_code" optional="hide"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
</odoo>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,9 @@
|
|||
<field name="inherit_id" ref="base.view_company_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="vat" position="after">
|
||||
<field name="l10n_cl_activity_description" placeholder="Activity Description" attrs="{'invisible': [('country_id', '!=', %(base.cl)d)], 'required': [('country_id', '=', %(base.cl)d)]}"/>
|
||||
<field name="l10n_cl_activity_description" placeholder="Activity Description"
|
||||
invisible="country_id != %(base.cl)d"
|
||||
required="country_id == %(base.cl)d"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
|
|
@ -6,13 +6,10 @@
|
|||
<field name="model">res.config.settings</field>
|
||||
<field name="inherit_id" ref="account.res_config_settings_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@id='invoicing_settings']" position="after">
|
||||
<div id="l10n_cl_title" attrs="{'invisible': True}">
|
||||
<h2>Chilean Localization</h2>
|
||||
</div>
|
||||
<div id="l10n_cl_section" class="row mt16 o_settings_container" attrs="{'invisible': [('country_code', '!=', 'CL')]}">
|
||||
<xpath expr="//block[@id='invoicing_settings']" position="after">
|
||||
<block title="Chilean Localization" id="l10n_cl_section" invisible="country_code != 'CL'">
|
||||
<!-- inside empty to add configuration of tags -->
|
||||
</div>
|
||||
</block>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
</record>
|
||||
|
||||
<record id="view_res_country_tree" model="ir.ui.view">
|
||||
<field name="name">res.country.tree</field>
|
||||
<field name="name">res.country.list</field>
|
||||
<field name="model">res.country</field>
|
||||
<field name="inherit_id" ref="base.view_country_tree"/>
|
||||
<field name="arch" type="xml">
|
||||
|
|
|
|||
|
|
@ -3,21 +3,21 @@
|
|||
|
||||
<record id="view_move_form" model="ir.ui.view">
|
||||
<field name="name">res.partner.placeholders.l10n_cl.form</field>
|
||||
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||
<field name="inherit_id" ref="account.view_partner_property_form"/>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="arch" type="xml">
|
||||
<field name="street2" position="attributes">
|
||||
<attribute name="placeholder">Datos adic. dirección y Ciudad</attribute>
|
||||
<attribute name="placeholder">Additional data address and city</attribute>
|
||||
</field>
|
||||
<field name="city" position="attributes">
|
||||
<attribute name="placeholder">Comuna</attribute>
|
||||
<attribute name="placeholder">Commune</attribute>
|
||||
</field>
|
||||
<field name="state_id" position="attributes">
|
||||
<attribute name="placeholder">Región</attribute>
|
||||
<attribute name="placeholder">Region</attribute>
|
||||
</field>
|
||||
<field name="vat" position="after">
|
||||
<field name="l10n_cl_sii_taxpayer_type" attrs="{'readonly': [('parent_id', '!=', False)]}"/>
|
||||
<field name="l10n_cl_activity_description" placeholder="Activity Description"/>
|
||||
<field name="l10n_cl_sii_taxpayer_type" invisible="'CL' not in fiscal_country_codes" readonly="parent_id"/>
|
||||
<field name="l10n_cl_activity_description" placeholder="Activity Description" invisible="'CL' not in fiscal_country_codes"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue