bilan structure

gn_mis_reports
Florian Roger 3 months ago
parent 3be61edd95
commit b78f1f4e96

@ -0,0 +1,26 @@
#GN Mis Reports
Mis reports models by Le Garage Numérique
COded by Florian ROGER.
## State of Progress
### Existing Reports
None
### In-progress Reports
- Bilan Comptables Norme ANC 2023
### ToDo Reports
- Compte de résultat Norme ANC 2023
## ToDo & Issues by Report
### Bilan Comptable Norme ANC 2023
- Quid du 4488 Etat - Trésor Public (Passif Circulant) -?> Dettes fiscales et sociales
- Le 4088 - Fournisseurs Intérêts courus est au Passig dans les dettes sur immo. Tout doit-il y figurer?

@ -0,0 +1,16 @@
{
'name': "Gn Mis Reports",
'version': '16.0.0.0.1',
'author': 'Garage Numérique',
'category': 'Reporting',
'description': """
This module adds reports for french Compte de Résultats and Bilan using mis_builder addon
""",
'depends': ['mis_builder', 'l10n_fr_mis_reports'],
'data': [
'data/mis_report.xml',
'data/bilan_ANC201806.xml',
],
'installable': True,
"license": "LGPL-3",
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,112 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="gn_mis_reports.gn_mis_reports_layout">
<t t-name="gn_mis_reports.report_layout">
<div t-attf-class="header o_company_#{company.id}_layout" t-att-style="report_header_style">
<div class="o_clean_header">
</div>
</div>
<div class="first-page">
<div t-attf-class="article o_report_layout_bold o_company_#{company.id}_layout {{ 'o_report_layout_background' if company.layout_background in ['Geometric', 'Custom'] else '' }}" t-attf-style="background-image: url({{ 'data:image/png;base64,%s' % company.layout_background_image.decode('utf-8') if company.layout_background_image and company.layout_background == 'Custom' else ('/base/static/img/bg_background_template.jpg' if company.layout_background == 'Geometric' else '') }});" t-att-data-oe-model="o and o._name" t-att-data-oe-id="o and o.id" t-att-data-oe-lang="o and o.env.context.get('lang')">
<t t-call="web.address_layout"/>
<t t-out="0"/>
</div>
</div>
<div t-attf-class="footer o_clean_footer o_company_#{company.id}_layout">
<div class="row h6">
<div class="col-5 mt-2">
<span t-field="company.name"/><span> - TVA N° </span><span t-field="company.vat"/>
</div>
<div class="col-6 mt-2 text-center">
<t t-if="o"><span t-esc="o.name"/></t>
</div>
<div class="col-1">
<ul t-if="report_type == 'pdf'" class="list-inline pagenumber float-end text-center">
<li class="list-inline-item"><strong><span class="page"/></strong></li>
</ul>
</div>
</div>
</div>
</t>
</template>
<template id="gn_mis_reports.gn_mis_builder_report" inherit_id="mis_builder.report_mis_report_instance">
<xpath expr="//t[@t-call='web.internal_layout']" position="replace">
<t t-call="gn_mis_reports.gn_mis_reports_layout">
<t t-set="matrix" t-value="o._compute_matrix()"/>
<t t-set="style_obj" t-value="o.env['mis.report.style']"/>
<div class="page">
<h3>
<span t-field="o.name"/>
<span>-</span>
<t t-foreach="o.query_company_ids" t-as="company">
<span t-field="company.name"/>
<span t-if="company != o.query_company_ids[-1]">,</span>
</t>
</h3>
<p>
<div class="mis_report_filers">
<t t-foreach="o.get_filter_descriptions()" t-as="filter_description">
<div>
<span t-out="filter_description"/>
</div>
</t>
</div>
</p>
<div class="mis_table table">
<div class="mis_thead">
<div class="mis_row">
<div class="mis_cell mis_collabel"/>
<t t-foreach="matrix.iter_cols()" t-as="col">
<div class="mis_cell mis_collabel">
<t t-out="col.label"/>
<t t-if="col.description">
<br/>
<t t-out="col.description"/>
</t>
</div>
<!-- add empty cells because we have no colspan with css tables -->
<t t-foreach="list(col.iter_subcols())[1:]" t-as="subcol">
<div class="mis_cell mis_collabel"/>
</t>
</t>
</div>
<div class="mis_row">
<div class="mis_cell mis_collabel"/>
<t t-foreach="matrix.iter_subcols()" t-as="subcol">
<div class="mis_cell mis_collabel">
<t t-out="subcol.label"/>
<t t-if="subcol.description">
<br/>
<t t-out="subcol.description"/>
</t>
</div>
</t>
</div>
</div>
<div class="mis_tbody">
<t t-foreach="matrix.iter_rows()" t-as="row">
<div t-if="not ((row.style_props.hide_empty and row.is_empty()) or row.style_props.hide_always)" class="mis_row">
<div t-att-style="style_obj.to_css_style(row.style_props)" class="mis_cell mis_rowlabel">
<t t-out="row.label"/>
<t t-if="row.description">
<br/>
<t t-out="row.description"/>
</t>
</div>
<t t-foreach="row.iter_cells()" t-as="cell">
<div t-att-style="cell and style_obj.to_css_style(cell.style_props) or ''" class="mis_cell mis_amount">
<t t-out="cell and cell.val_rendered or ''"/>
</div>
</t>
</div>
</t>
</div>
</div>
</div>
</t>
</xpath>
</template>
</odoo>
Loading…
Cancel
Save