Browse Source

[UPDT] Update in 'invoice_format_editor'

pull/206/head
AjmalCybro 3 years ago
parent
commit
2c84a03f7f
  1. 2
      invoice_format_editor/__manifest__.py
  2. 8
      invoice_format_editor/doc/RELEASE_NOTES.md
  3. 122
      invoice_format_editor/reports/custom_invoice_template.xml

2
invoice_format_editor/__manifest__.py

@ -22,7 +22,7 @@
{
'name': 'Invoice Format Editor',
'version': '15.0.1.0.0',
'version': '15.0.1.0.1',
'category': 'Accounting',
'summary': 'Invoice Format Editor',
'description': """Invoice Format Editor For Configuring the Invoice Templates""",

8
invoice_format_editor/doc/RELEASE_NOTES.md

@ -3,4 +3,10 @@
#### 20.11.2021
#### Version 15.0.1.0.0
#### ADD
- Initial commit for invoice_format_editor
- Initial commit for invoice_format_editor
#### 10.06.2022
#### Version 15.0.1.0.1
#### UPDT AND BUGFIX
- Invoice printing issue

122
invoice_format_editor/reports/custom_invoice_template.xml

@ -105,24 +105,24 @@
t-field="o.partner_id"/>
<br/>
<span t-if="o.theme_id.address">
<span t-attf-style="color:#{o.theme_id.customer_text_color} !important;"
t-field="o.partner_id.street"/>
<br/>
<span t-attf-style="color:#{o.theme_id.customer_text_color} !important;"
t-field="o.partner_id.street2"/>
<br/>
<span t-attf-style="color:#{o.theme_id.customer_text_color} !important;"
t-field="o.partner_id.street"/>
<br/>
<span t-attf-style="color:#{o.theme_id.customer_text_color} !important;"
t-field="o.partner_id.street2"/>
<br/>
</span>
<span t-if="o.theme_id.city">
<span t-attf-style="color:#{o.theme_id.customer_text_color} !important;"
t-field="o.partner_id.city"/>
<br/>
<span t-attf-style="color:#{o.theme_id.customer_text_color} !important;"
t-field="o.partner_id.city"/>
<br/>
</span>
<span t-if="o.theme_id.country">
<span t-attf-style="color:#{o.theme_id.customer_text_color} !important;"
t-field="o.partner_id.country_id"/>
<br/>
<span t-attf-style="color:#{o.theme_id.customer_text_color} !important;"
t-field="o.partner_id.country_id"/>
<br/>
</span>
<span t-attf-style="color:#{o.theme_id.customer_text_color} !important;"
t-field="o.partner_id.vat"/>
@ -330,9 +330,9 @@
<td class="text-right">
<span
t-att-class="oe_subtotal_footer_separator"
t-esc="subtotal['amount']"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'
t-att-class="oe_subtotal_footer_separator"
t-esc="subtotal['amount']"
t-options='{"widget": "monetary", "display_currency": o.currency_id}'
/>
</td>
</tr>
@ -406,55 +406,59 @@
</div>
</t>
</template>
<template id="account.report_invoice_with_payments">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-set="lang"
t-value="o.invoice_user_id.sudo().lang if o.move_type in ('in_invoice', 'in_refund') else o.partner_id.lang"/>
<t t-set="print_with_payments" t-value="True"/>
<t t-if="o.company_id.base_layout == 'normal'">
<t t-call="invoice_format_editor.custom_template_report_invoice_normal"
t-lang="o.partner_id.lang"/>
</t>
<t t-if="o.company_id.base_layout == 'old'">
<t t-call="invoice_format_editor.old_std_report_invoice_document"
t-lang="o.partner_id.lang"/>
</t>
<t t-if="o.company_id.base_layout == 'modern'">
<t t-call="invoice_format_editor.custom_template_report_invoice_modern"
t-lang="o.partner_id.lang"/>
</t>
<t t-if="o.company_id.base_layout == 'default'">
<t t-call="invoice_format_editor.report_invoice_document"
t-lang="o.partner_id.lang"/>
<template id="report_invoice_with_payments_inherit" inherit_id="account.report_invoice_with_payments">
<xpath expr="//t[@t-call='web.html_container']" position="replace">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-set="lang"
t-value="o.invoice_user_id.sudo().lang if o.move_type in ('in_invoice', 'in_refund') else o.partner_id.lang"/>
<t t-set="print_with_payments" t-value="True"/>
<t t-if="o.company_id.base_layout == 'normal'">
<t t-call="invoice_format_editor.custom_template_report_invoice_normal"
t-lang="o.partner_id.lang"/>
</t>
<t t-if="o.company_id.base_layout == 'old'">
<t t-call="invoice_format_editor.old_std_report_invoice_document"
t-lang="o.partner_id.lang"/>
</t>
<t t-if="o.company_id.base_layout == 'modern'">
<t t-call="invoice_format_editor.custom_template_report_invoice_modern"
t-lang="o.partner_id.lang"/>
</t>
<t t-if="o.company_id.base_layout == 'default'">
<t t-call="invoice_format_editor.report_invoice_document"
t-lang="o.partner_id.lang"/>
</t>
</t>
</t>
</t>
</xpath>
</template>
<template id="account.report_invoice">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-set="lang"
t-value="o.invoice_user_id.sudo().lang if o.move_type in ('in_invoice', 'in_refund') else o.partner_id.lang"/>
<t t-set="print_with_payments" t-value="True"/>
<t t-if="o.company_id.base_layout == 'normal'">
<t t-call="invoice_format_editor.custom_template_report_invoice_normal"
t-lang="o.partner_id.lang"/>
</t>
<t t-if="o.company_id.base_layout == 'old'">
<t t-call="invoice_format_editor.old_std_report_invoice_document"
t-lang="o.partner_id.lang"/>
</t>
<t t-if="o.company_id.base_layout == 'modern'">
<t t-call="invoice_format_editor.custom_template_report_invoice_modern"
t-lang="o.partner_id.lang"/>
</t>
<t t-if="o.company_id.base_layout == 'default'">
<t t-call="invoice_format_editor.report_invoice_document"
t-lang="o.partner_id.lang"/>
<template id="report_invoice_inherit" inherit_id="account.report_invoice">
<xpath expr="//t[@t-call='web.html_container']" position="replace">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-set="lang"
t-value="o.invoice_user_id.sudo().lang if o.move_type in ('in_invoice', 'in_refund') else o.partner_id.lang"/>
<t t-set="print_with_payments" t-value="True"/>
<t t-if="o.company_id.base_layout == 'normal'">
<t t-call="invoice_format_editor.custom_template_report_invoice_normal"
t-lang="o.partner_id.lang"/>
</t>
<t t-if="o.company_id.base_layout == 'old'">
<t t-call="invoice_format_editor.old_std_report_invoice_document"
t-lang="o.partner_id.lang"/>
</t>
<t t-if="o.company_id.base_layout == 'modern'">
<t t-call="invoice_format_editor.custom_template_report_invoice_modern"
t-lang="o.partner_id.lang"/>
</t>
<t t-if="o.company_id.base_layout == 'default'">
<t t-call="invoice_format_editor.report_invoice_document"
t-lang="o.partner_id.lang"/>
</t>
</t>
</t>
</t>
</xpath>
</template>
</data>
</odoo>
Loading…
Cancel
Save