añadido pos_product_available desde odoo app

https://apps.odoo.com/apps/modules/12.0/pos_product_available/
This commit is contained in:
santiky 2021-08-22 22:57:36 +02:00
parent 89d58a2aff
commit f1c8cf8414
Signed by: snt
GPG key ID: A9FD34930EADBE71
24 changed files with 1030 additions and 0 deletions

View file

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--Copyright 2014-2015 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
Copyright 2018-2019 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
License MIT (https://opensource.org/licenses/MIT). -->
<templates id="template" xml:space="preserve">
<t t-extend="Product">
<t t-jquery=".product-img" t-operation="append">
<t t-if="widget.pos.config.show_qtys &amp;&amp; product.type == 'product'">
<span
t-attf-class="qty-tag #{product.qty_available lte 0 ? 'not-available':''}"
>
<t t-esc="product.rounded_qty()" />
</span>
</t>
</t>
</t>
<t t-extend="Orderline">
<t t-jquery=".info-list>t:first-child">
this.attr('t-if', "line.get_quantity_str() !== '1' || line.selected || line.get_product().qty_available lt line.quantity ");
</t>
<t t-jquery="t[t-esc='line.get_quantity_str()']" t-operation="after">
<t
t-if="widget.pos.config.show_qtys &amp;&amp; line.get_product().type == 'product'"
>
<t t-set='qty_available' t-value='line.get_product().qty_available' />
(of <span
t-attf-class="qty-info #{qty_available lt line.quantity ? 'not-available':''}"
>
<t t-esc="line.get_product().rounded_qty()" />
</span>)
</t>
</t>
</t>
</templates>