[MIG] account_financial_report: Migration to 14.0
Since v14, Odoo defines the `__slots__` attribute in the `BaseModel` class (ea3e39506a)
This makes it impossible to add attributes to an instance like it was done here in v13.
The use of the `report_data` dictionary passed between method is the closes and simples solution to this "issue".
TT26415
Co-authored-by: Alex Cuellar <acuellar@grupoyacck.com>
This commit is contained in:
@@ -1,120 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<!-- PDF/HMTL REPORTS -->
|
||||
<!-- General Ledger -->
|
||||
<report
|
||||
id="action_print_report_general_ledger_qweb"
|
||||
model="general.ledger.report.wizard"
|
||||
string="General Ledger"
|
||||
report_type="qweb-pdf"
|
||||
menu="False"
|
||||
name="account_financial_report.general_ledger"
|
||||
file="account_financial_report.general_ledger"
|
||||
/>
|
||||
<report
|
||||
id="action_print_report_general_ledger_html"
|
||||
model="general.ledger.report.wizard"
|
||||
string="General Ledger"
|
||||
report_type="qweb-html"
|
||||
menu="False"
|
||||
name="account_financial_report.general_ledger"
|
||||
file="account_financial_report.general_ledger"
|
||||
/>
|
||||
<!-- Journal Ledger -->
|
||||
<report
|
||||
id="action_print_journal_ledger_wizard_qweb"
|
||||
model="journal.ledger.report.wizard"
|
||||
report_type="qweb-pdf"
|
||||
menu="False"
|
||||
string="Journal Ledger"
|
||||
name="account_financial_report.journal_ledger"
|
||||
file="account_financial_report.journal_ledger"
|
||||
/>
|
||||
<report
|
||||
id="action_print_journal_ledger_wizard_html"
|
||||
model="journal.ledger.report.wizard"
|
||||
report_type="qweb-html"
|
||||
menu="False"
|
||||
string="Journal Ledger"
|
||||
name="account_financial_report.journal_ledger"
|
||||
file="account_financial_report.journal_ledger"
|
||||
/>
|
||||
<!-- Trial Balance -->
|
||||
<report
|
||||
id="action_report_trial_balance_qweb"
|
||||
model="trial.balance.report.wizard"
|
||||
string="Trial Balance"
|
||||
menu="False"
|
||||
report_type="qweb-pdf"
|
||||
name="account_financial_report.trial_balance"
|
||||
file="account_financial_report.trial_balance"
|
||||
/>
|
||||
<report
|
||||
id="action_report_trial_balance_html"
|
||||
model="trial.balance.report.wizard"
|
||||
string="Trial Balance"
|
||||
menu="False"
|
||||
report_type="qweb-html"
|
||||
name="account_financial_report.trial_balance"
|
||||
file="account_financial_report.trial_balance"
|
||||
/>
|
||||
<!-- Open Items -->
|
||||
<report
|
||||
id="action_print_report_open_items_qweb"
|
||||
model="open.items.report.wizard"
|
||||
string="Open Items"
|
||||
menu="False"
|
||||
report_type="qweb-pdf"
|
||||
name="account_financial_report.open_items"
|
||||
file="account_financial_report.open_items"
|
||||
/>
|
||||
<report
|
||||
id="action_print_report_open_items_html"
|
||||
model="open.items.report.wizard"
|
||||
string="Open Items"
|
||||
menu="False"
|
||||
report_type="qweb-html"
|
||||
name="account_financial_report.open_items"
|
||||
file="account_financial_report.open_items"
|
||||
/>
|
||||
<!-- Aged Partner Balance -->
|
||||
<report
|
||||
id="action_print_report_aged_partner_balance_qweb"
|
||||
model="aged.partner.balance.report.wizard"
|
||||
string="Aged Partner Balance"
|
||||
report_type="qweb-pdf"
|
||||
menu="False"
|
||||
name="account_financial_report.aged_partner_balance"
|
||||
file="account_financial_report.aged_partner_balance"
|
||||
/>
|
||||
<report
|
||||
id="action_print_report_aged_partner_balance_html"
|
||||
model="aged.partner.balance.report.wizard"
|
||||
string="Aged Partner Balance"
|
||||
report_type="qweb-html"
|
||||
menu="False"
|
||||
name="account_financial_report.aged_partner_balance"
|
||||
file="account_financial_report.aged_partner_balance"
|
||||
/>
|
||||
<!-- VAT Report -->
|
||||
<report
|
||||
id="action_print_report_vat_report_qweb"
|
||||
model="vat.report.wizard"
|
||||
string="VAT Report"
|
||||
report_type="qweb-pdf"
|
||||
menu="False"
|
||||
name="account_financial_report.vat_report"
|
||||
file="account_financial_report.vat_report"
|
||||
/>
|
||||
<report
|
||||
id="action_print_report_vat_report_html"
|
||||
model="vat.report.wizard"
|
||||
string="VAT Report"
|
||||
report_type="qweb-html"
|
||||
menu="False"
|
||||
name="account_financial_report.vat_report"
|
||||
file="account_financial_report.vat_report"
|
||||
/>
|
||||
<!-- PDF REPORTS : paperformat -->
|
||||
<record id="report_qweb_paperformat" model="report.paperformat">
|
||||
<field name="name">Account financial report qweb paperformat</field>
|
||||
@@ -131,27 +16,111 @@
|
||||
<field name="header_spacing">10</field>
|
||||
<field name="dpi">110</field>
|
||||
</record>
|
||||
|
||||
<!-- PDF/HMTL REPORTS -->
|
||||
<!-- General Ledger -->
|
||||
<record id="action_print_report_general_ledger_qweb" model="ir.actions.report">
|
||||
<field name="name">General Ledger</field>
|
||||
<field name="model">general.ledger.report.wizard</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
<field name="report_name">account_financial_report.general_ledger</field>
|
||||
<field name="report_file">account_financial_report.general_ledger</field>
|
||||
<field name="paperformat_id" ref="report_qweb_paperformat" />
|
||||
</record>
|
||||
<record id="action_print_report_general_ledger_html" model="ir.actions.report">
|
||||
<field name="name">General Ledger</field>
|
||||
<field name="model">general.ledger.report.wizard</field>
|
||||
<field name="report_type">qweb-html</field>
|
||||
<field name="report_name">account_financial_report.general_ledger</field>
|
||||
<field name="report_file">account_financial_report.general_ledger</field>
|
||||
</record>
|
||||
<!-- Journal Ledger -->
|
||||
<record id="action_print_journal_ledger_wizard_qweb" model="ir.actions.report">
|
||||
<field name="name">ournal Ledger</field>
|
||||
<field name="model">journal.ledger.report.wizard</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
<field name="report_name">account_financial_report.journal_ledger</field>
|
||||
<field name="report_file">account_financial_report.journal_ledger</field>
|
||||
<field name="paperformat_id" ref="report_qweb_paperformat" />
|
||||
</record>
|
||||
<record id="action_print_journal_ledger_wizard_html" model="ir.actions.report">
|
||||
<field name="name">Journal Ledger</field>
|
||||
<field name="model">journal.ledger.report.wizard</field>
|
||||
<field name="report_type">qweb-html</field>
|
||||
<field name="report_name">account_financial_report.journal_ledger</field>
|
||||
<field name="report_file">account_financial_report.journal_ledger</field>
|
||||
</record>
|
||||
<!-- Trial Balance -->
|
||||
<record id="action_report_trial_balance_qweb" model="ir.actions.report">
|
||||
<field name="name">Trial Balance</field>
|
||||
<field name="model">trial.balance.report.wizard</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
<field name="report_name">account_financial_report.trial_balance</field>
|
||||
<field name="report_file">account_financial_report.trial_balance</field>
|
||||
<field name="paperformat_id" ref="report_qweb_paperformat" />
|
||||
</record>
|
||||
<record id="action_report_trial_balance_html" model="ir.actions.report">
|
||||
<field name="name">Trial Balance</field>
|
||||
<field name="model">trial.balance.report.wizard</field>
|
||||
<field name="report_type">qweb-html</field>
|
||||
<field name="report_name">account_financial_report.trial_balance</field>
|
||||
<field name="report_file">account_financial_report.trial_balance</field>
|
||||
</record>
|
||||
<!-- Open Items -->
|
||||
<record id="action_print_report_open_items_qweb" model="ir.actions.report">
|
||||
<field name="name">Open Items</field>
|
||||
<field name="model">open.items.report.wizard</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
<field name="report_name">account_financial_report.open_items</field>
|
||||
<field name="report_file">account_financial_report.open_items</field>
|
||||
<field name="paperformat_id" ref="report_qweb_paperformat" />
|
||||
</record>
|
||||
<record id="action_print_report_open_items_html" model="ir.actions.report">
|
||||
<field name="name">Open Items</field>
|
||||
<field name="model">open.items.report.wizard</field>
|
||||
<field name="report_type">qweb-html</field>
|
||||
<field name="report_name">account_financial_report.open_items</field>
|
||||
<field name="report_file">account_financial_report.open_items</field>
|
||||
</record>
|
||||
<!-- Aged Partner Balance -->
|
||||
<record
|
||||
id="action_print_report_aged_partner_balance_qweb"
|
||||
model="ir.actions.report"
|
||||
>
|
||||
<field name="name">Aged Partner Balance</field>
|
||||
<field name="model">aged.partner.balance.report.wizard</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
<field name="report_name">account_financial_report.aged_partner_balance</field>
|
||||
<field name="report_file">account_financial_report.aged_partner_balance</field>
|
||||
<field name="paperformat_id" ref="report_qweb_paperformat" />
|
||||
</record>
|
||||
<record
|
||||
id="action_print_report_aged_partner_balance_html"
|
||||
model="ir.actions.report"
|
||||
>
|
||||
<field name="name">Aged Partner Balance</field>
|
||||
<field name="model">aged.partner.balance.report.wizard</field>
|
||||
<field name="report_type">qweb-html</field>
|
||||
<field name="report_name">account_financial_report.aged_partner_balance</field>
|
||||
<field name="report_file">account_financial_report.aged_partner_balance</field>
|
||||
</record>
|
||||
<!-- VAT Report -->
|
||||
<record id="action_print_report_vat_report_qweb" model="ir.actions.report">
|
||||
<field name="name">VAT Report</field>
|
||||
<field name="model">vat.report.wizard</field>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
<field name="report_name">account_financial_report.vat_report</field>
|
||||
<field name="report_file">account_financial_report.vat_report</field>
|
||||
<field name="paperformat_id" ref="report_qweb_paperformat" />
|
||||
</record>
|
||||
<record id="action_print_report_vat_report_html" model="ir.actions.report">
|
||||
<field name="name">VAT Report</field>
|
||||
<field name="model">vat.report.wizard</field>
|
||||
<field name="report_type">qweb-html</field>
|
||||
<field name="report_name">account_financial_report.vat_report</field>
|
||||
<field name="report_file">account_financial_report.vat_report</field>
|
||||
</record>
|
||||
|
||||
<!-- XLSX REPORTS -->
|
||||
<record id="action_report_general_ledger_xlsx" model="ir.actions.report">
|
||||
<field name="name">General Ledger XLSX</field>
|
||||
|
||||
Reference in New Issue
Block a user