Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0][UPD] sale order report: added nr. crt. column #197

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion l10n_ro_sale_order_report/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Terrabit Sale Order Report
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:ecbddb3083d2458de968c52f812b12417a049182aa752a19f268ec0c4eb841be
!! source digest: sha256:f9922d443f514357536e98ca6c83053d2182e9c831da8ee4a1c6818fab67f918
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
2 changes: 1 addition & 1 deletion l10n_ro_sale_order_report/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "Terrabit Sale Order Report",
"summary": "Formular Factura Proformae",
"version": "15.0.1.0.0",
"version": "15.0.1.0.1",
"author": "Dorin Hongu, Dan Stoica, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"category": "Sales",
Expand Down
2 changes: 1 addition & 1 deletion l10n_ro_sale_order_report/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ <h1 class="title">Terrabit Sale Order Report</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:ecbddb3083d2458de968c52f812b12417a049182aa752a19f268ec0c4eb841be
!! source digest: sha256:f9922d443f514357536e98ca6c83053d2182e9c831da8ee4a1c6818fab67f918
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/dhongu/l10n-romania/tree/15.0/l10n_ro_sale_order_report"><img alt="dhongu/l10n-romania" src="https://img.shields.io/badge/github-dhongu%2Fl10n--romania-lightgray.png?logo=github" /></a></p>
<dl class="docutils">
Expand Down
23 changes: 16 additions & 7 deletions l10n_ro_sale_order_report/views/sale_order.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,27 @@
</div>
</div>
</xpath>
<!-- Poze produse-->
<!--Poze produse si nr. crt-->
<xpath expr="//tbody/t" position="before">
<t t-set="nr_crt" t-value="1" />
</xpath>
<xpath expr="//tbody/t/tr/t" position="inside">
<t t-set="nr_crt" t-value="nr_crt + 1" />
</xpath>
<xpath expr="//table/thead/tr/th" position="before">
<th name="th_number" class="text-start">No.</th>
<th />
</xpath>
<xpath expr="//table/tbody/t[2]/tr/t/td" position="before">
<td>
<td name="td_name" position="before">
<td name="td_number">
<span t-esc="nr_crt" />
</td>
<td name="td_image">
<img t-attf-src="data:image/*;base64,{{line.product_id.image_256}}" style="max-height:50px;" />
</td>
</xpath>

</td>

<xpath expr="//span[@t-field='doc.payment_term_id.note']" position="after">
<p id="fiscal_position_remark" position="before">
<t t-set="transa" t-value="1" />
<t t-if="doc.payment_term_id">
<t t-if="len(doc.payment_term_id.line_ids)==2">
Expand All @@ -55,7 +64,7 @@
</div>
</t>
</t>
</xpath>
</p>
</template>
<template id="saleorder_proforma_percent_document">
<t t-call="web.external_layout">
Expand Down
Loading