[FIX] pos_daily_sales_reports: SaleDetailsButton not working properly
With the addition of the pos_daily_sales_reports module, the get_sale_details function return was different which was deregulating the expectation of the SaleDetailsReport.xml file (printing detail reports on ticket). This is now changed thanks to an override of some part of the file when installing the module pos_daily_sales_details. closes odoo/odoo#117006 X-original-commit: 79d309d38bdf0ef68c1c85228b94cdea0da55ccf Signed-off-by: Trinh Jacky (trj) <trj@odoo.com>
This commit is contained in:
@@ -13,21 +13,56 @@
|
||||
</t>
|
||||
<br /><br />
|
||||
|
||||
<div>
|
||||
SOLD:
|
||||
</div>
|
||||
|
||||
<div class="orderlines">
|
||||
<t t-foreach="products" t-as="line" t-key="line.product_id">
|
||||
<div class="responsive-price">
|
||||
<t t-esc="line.product_name.substr(0,20)" />
|
||||
<span class="pos-receipt-right-align">
|
||||
<t t-esc="Math.round(line.quantity * Math.pow(10, pos.dp['Product Unit of Measure'])) / Math.pow(10, pos.dp['Product Unit of Measure'])" />
|
||||
<t t-if="line.uom !== 'Units'">
|
||||
<t t-esc="line.uom" />
|
||||
</t>
|
||||
x
|
||||
<t t-esc="pos.format_currency_no_symbol(line.price_unit)" />
|
||||
</span>
|
||||
</div>
|
||||
<t t-if="line.discount !== 0">
|
||||
<div class="pos-receipt-left-padding">Discount: <t t-esc="line.discount" />%</div>
|
||||
<t t-foreach="products" t-as="category" t-key="category['name']">
|
||||
<t t-foreach="category['products']" t-as="line" t-key="line['product_id']">
|
||||
<div class="responsive-price">
|
||||
<t t-esc="line['product_name'].substr(0,20)" />
|
||||
<span class="pos-receipt-right-align">
|
||||
<t t-esc="Math.round(line.quantity * Math.pow(10, pos.dp['Product Unit of Measure'])) / Math.pow(10, pos.dp['Product Unit of Measure'])" />
|
||||
<t t-if="line.uom !== 'Units'">
|
||||
<t t-esc="line.uom" />
|
||||
</t>
|
||||
x
|
||||
<t t-esc="pos.format_currency_no_symbol(line.price_unit)" />
|
||||
</span>
|
||||
</div>
|
||||
<t t-if="line.discount !== 0">
|
||||
<div class="pos-receipt-left-padding">Discount: <t t-esc="line.discount" />%</div>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<div>------------------------</div>
|
||||
<br/>
|
||||
|
||||
<div>
|
||||
REFUNDED:
|
||||
</div>
|
||||
|
||||
<div class="orderlines">
|
||||
<t t-foreach="refund_products" t-as="category" t-key="category['name']">
|
||||
<t t-foreach="category['products']" t-as="line" t-key="line['product_id']">
|
||||
<div class="responsive-price">
|
||||
<t t-esc="line['product_name'].substr(0,20)" />
|
||||
<span class="pos-receipt-right-align">
|
||||
<t t-esc="Math.round(line.quantity * Math.pow(10, pos.dp['Product Unit of Measure'])) / Math.pow(10, pos.dp['Product Unit of Measure'])" />
|
||||
<t t-if="line.uom !== 'Units'">
|
||||
<t t-esc="line.uom" />
|
||||
</t>
|
||||
x
|
||||
<t t-esc="pos.format_currency_no_symbol(line.price_unit)" />
|
||||
</span>
|
||||
</div>
|
||||
<t t-if="line.discount !== 0">
|
||||
<div class="pos-receipt-left-padding">Discount: <t t-esc="line.discount" />%</div>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user