mirror of
https://github.com/bringout/oca-pos.git
synced 2026-04-21 12:02:04 +02:00
Reorganized 74 POS-related modules for better structure: - Moved all odoo-bringout-oca-pos-* packages from packages/oca-technical/ - Now organized in dedicated packages/oca-pos/ submodule - Includes payment, receipt, loyalty, order, product, and partner modules - Maintains all module functionality while improving project organization This creates a cleaner separation between general technical modules and Point of Sale specific functionality. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
47 lines
1.7 KiB
XML
47 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!--
|
|
Copyright (C) 2023 - Today: GRAP (http://www.grap.coop)
|
|
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
-->
|
|
<templates id="template" xml:space="preserve">
|
|
|
|
<t t-name="OrderSummaryMargin" owl="1">
|
|
<div class="summary clearfix">
|
|
<t t-if="env.pos.config.iface_display_margin">
|
|
<t t-set="_result" t-value="getOrderMargin()" />
|
|
<t t-if="_result">
|
|
<div class="line">
|
|
<div class="subentry order-margin">
|
|
<span class="value-margin">Margin:
|
|
<t t-out="_result.margin" />
|
|
</span>
|
|
(<span class="value-margin-rate">
|
|
<t t-out="_result.margin_rate" />
|
|
</span>)
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</t>
|
|
</div>
|
|
</t>
|
|
|
|
<t t-inherit="point_of_sale.OrderWidget" t-inherit-mode="extension">
|
|
<xpath expr="//div/div/t[@t-else='']" position="inside">
|
|
<OrderSummaryMargin />
|
|
</xpath>
|
|
</t>
|
|
|
|
<t t-inherit="point_of_sale.Orderline" t-inherit-mode="extension">
|
|
<xpath expr="//ul/t/li" position="inside">
|
|
<t t-if="env.pos.config.iface_display_margin">
|
|
<span
|
|
t-att-class="'price order-line-margin ' + (props.line.get_margin_rate() < 0 ? 'margin-negative' : '')"
|
|
>
|
|
(<t t-out="props.line.get_margin_rate_str()" />)
|
|
</span>
|
|
</t>
|
|
</xpath>
|
|
</t>
|
|
|
|
</templates>
|