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', 'name': 'Invoice Format Editor',
'version': '15.0.1.0.0', 'version': '15.0.1.0.1',
'category': 'Accounting', 'category': 'Accounting',
'summary': 'Invoice Format Editor', 'summary': 'Invoice Format Editor',
'description': """Invoice Format Editor For Configuring the Invoice Templates""", 'description': """Invoice Format Editor For Configuring the Invoice Templates""",

8
invoice_format_editor/doc/RELEASE_NOTES.md

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