mirror of
https://github.com/bringout/odoomates.git
synced 2026-04-18 06:12:07 +02:00
Upgrade l10n_ba_bank_unicredit, purchase_advance_payment fixes
🤖 assisted by claude
This commit is contained in:
parent
aefecb045d
commit
5f0082b0ee
3 changed files with 80 additions and 62 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{
|
||||
'name': 'Odoo 16 Accounting Financial Reports',
|
||||
'version': '16.0.2.1.1',
|
||||
'version': '16.0.2.2.0',
|
||||
'category': 'Invoicing Management',
|
||||
'description': 'Accounting Reports For Odoo 16, Accounting Financial Reports, '
|
||||
'Odoo 16 Financial Reports',
|
||||
|
|
|
|||
|
|
@ -2,6 +2,20 @@
|
|||
<odoo>
|
||||
<data>
|
||||
|
||||
<record id="paperformat_partner_ledger" model="report.paperformat">
|
||||
<field name="name">Partner Ledger A4 Landscape</field>
|
||||
<field name="default" eval="False"/>
|
||||
<field name="format">A4</field>
|
||||
<field name="orientation">Landscape</field>
|
||||
<field name="margin_top">25</field>
|
||||
<field name="margin_bottom">10</field>
|
||||
<field name="margin_left">7</field>
|
||||
<field name="margin_right">7</field>
|
||||
<field name="header_line" eval="False"/>
|
||||
<field name="header_spacing">10</field>
|
||||
<field name="disable_shrinking" eval="True"/>
|
||||
</record>
|
||||
|
||||
<record id="action_report_general_ledger" model="ir.actions.report">
|
||||
<field name="name">General Ledger</field>
|
||||
<field name="model">account.report.general.ledger</field>
|
||||
|
|
@ -17,6 +31,7 @@
|
|||
<field name="report_name">accounting_pdf_reports.report_partnerledger</field>
|
||||
<field name="report_file">accounting_pdf_reports.report_partnerledger</field>
|
||||
<field name="print_report_name">object._get_report_base_filename()</field>
|
||||
<field name="paperformat_id" ref="paperformat_partner_ledger"/>
|
||||
</record>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,74 +4,77 @@
|
|||
<template id="report_partnerledger">
|
||||
<t t-call="web.html_container">
|
||||
<t t-call="web.internal_layout">
|
||||
<t t-set="data_report_margin_top" t-value="12"/>
|
||||
<t t-set="data_report_header_spacing" t-value="9"/>
|
||||
<t t-set="data_report_dpi" t-value="110"/>
|
||||
<div class="page">
|
||||
<style>
|
||||
.col-amount {
|
||||
width: 120px;
|
||||
min-width: 120px;
|
||||
text-align: right;
|
||||
}
|
||||
</style>
|
||||
<h2>Kartica partnera</h2>
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
<strong>Tvrtka:</strong>
|
||||
<p t-esc="res_company.name"/>
|
||||
<style>
|
||||
.col-amount {
|
||||
width: 120px;
|
||||
min-width: 120px;
|
||||
text-align: right;
|
||||
}
|
||||
</style>
|
||||
<t t-set="currency_symbol" t-value="res_company.currency_id.symbol"/>
|
||||
<t t-foreach="docs" t-as="o">
|
||||
<div class="page" t-att-style="'page-break-before: always;' if not o_first else ''">
|
||||
<h5 style="margin-top: 4px;"><strong>Kartica partnera: <t t-esc="o.name"/></strong></h5>
|
||||
<div class="row">
|
||||
<div class="col-3">
|
||||
<strong>Preduzeće:</strong>
|
||||
<p t-esc="res_company.name"/>
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<strong>Partner:</strong>
|
||||
<p>
|
||||
<t t-if="o.ref"><t t-esc="o.ref"/> - </t>
|
||||
<t t-esc="o.name"/>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<t t-if="data['form']['date_from']">
|
||||
<strong>Datum od:</strong>
|
||||
<span t-esc="data['form']['date_from']" t-options="{'widget': 'date'}"/>
|
||||
<br/>
|
||||
</t>
|
||||
<t t-if="data['form']['date_to']">
|
||||
<strong>Datum do:</strong>
|
||||
<span t-esc="data['form']['date_to']" t-options="{'widget': 'date'}"/>
|
||||
</t>
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<strong>Transakcije:</strong>
|
||||
<p t-if="data['form']['target_move'] == 'all'">Sve proknjižene stavke</p>
|
||||
<p t-if="data['form']['target_move'] == 'posted'">Samo proknjižene stavke</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<t t-if="data['form']['date_from']">
|
||||
<strong>Datum od:</strong>
|
||||
<span t-esc="data['form']['date_from']" t-options="{'widget': 'date'}"/>
|
||||
<br/>
|
||||
</t>
|
||||
<t t-if="data['form']['date_to']">
|
||||
<strong>Datum do:</strong>
|
||||
<span t-esc="data['form']['date_to']" t-options="{'widget': 'date'}"/>
|
||||
</t>
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<strong>Transakcije:</strong>
|
||||
<p t-if="data['form']['target_move'] == 'all'">Sve proknjižene stavke</p>
|
||||
<p t-if="data['form']['target_move'] == 'posted'">Samo proknjižene stavke</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<t t-set="currency_symbol" t-value="res_company.currency_id.symbol"/>
|
||||
<table class="table table-sm table-reports">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Datum</th>
|
||||
<th>ŽURN</th>
|
||||
<th>Naziv konta</th>
|
||||
<th>Opis</th>
|
||||
<th class="col-amount">Duguje (<t t-esc="currency_symbol"/>)</th>
|
||||
<th class="col-amount">Potražuje (<t t-esc="currency_symbol"/>)</th>
|
||||
<th class="col-amount">Saldo (<t t-esc="currency_symbol"/>)</th>
|
||||
<th class="col-amount" t-if="data['form']['amount_currency']">Valuta</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<t t-foreach="docs" t-as="o">
|
||||
<tbody>
|
||||
<table class="table table-sm table-reports" style="margin-top: 2px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Datum</th>
|
||||
<th>ŽURN</th>
|
||||
<th>Naziv konta</th>
|
||||
<th>Opis</th>
|
||||
<th class="col-amount">Duguje (<t t-esc="currency_symbol"/>)</th>
|
||||
<th class="col-amount">Potražuje (<t t-esc="currency_symbol"/>)</th>
|
||||
<th class="col-amount">Saldo (<t t-esc="currency_symbol"/>)</th>
|
||||
<th class="col-amount" t-if="data['form']['amount_currency']">Valuta</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="font-weight-bold" style="background-color: #fff9e6;">
|
||||
<td colspan="4">
|
||||
<strong t-esc="o.ref"/>
|
||||
-
|
||||
<strong t-esc="o.name"/>
|
||||
<t t-if="o.ref"><t t-esc="o.ref"/> - </t>
|
||||
<t t-esc="o.name"/>
|
||||
</td>
|
||||
<td class="col-amount">
|
||||
<strong t-esc="sum_partner(data, o, 'debit')"
|
||||
t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
<t t-esc="sum_partner(data, o, 'debit')"
|
||||
t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
</td>
|
||||
<td class="col-amount">
|
||||
<strong t-esc="sum_partner(data, o, 'credit')"
|
||||
t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
<t t-esc="sum_partner(data, o, 'credit')"
|
||||
t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
</td>
|
||||
<td class="col-amount">
|
||||
<strong t-esc="sum_partner(data, o, 'debit - credit')"
|
||||
t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
<t t-esc="sum_partner(data, o, 'debit - credit')"
|
||||
t-options="{'widget': 'float', 'precision': 2}"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr t-foreach="lines(data, o)" t-as="line">
|
||||
|
|
@ -107,9 +110,9 @@
|
|||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</t>
|
||||
</table>
|
||||
</div>
|
||||
</table>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue