añadido pos_product_available desde odoo app
https://apps.odoo.com/apps/modules/12.0/pos_product_available/
This commit is contained in:
parent
89d58a2aff
commit
f1c8cf8414
24 changed files with 1030 additions and 0 deletions
34
pos_product_available/static/src/xml/pos.xml
Normal file
34
pos_product_available/static/src/xml/pos.xml
Normal 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 && 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 && 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>
|
Loading…
Add table
Add a link
Reference in a new issue