Sylvain LE GAL
8 years ago
7 changed files with 114 additions and 15 deletions
-
20pos_default_empty_image/README.rst
-
13pos_default_empty_image/__manifest__.py
-
1pos_default_empty_image/models/__init__.py
-
38pos_default_empty_image/static/src/css/pos_default_empty_image.css
-
29pos_default_empty_image/static/src/js/pos_default_empty_image.js
-
23pos_default_empty_image/static/src/xml/pos_default_empty_image.xml
-
3pos_default_empty_image/views/templates.xml
@ -0,0 +1 @@ |
|||||
|
from . import product |
@ -0,0 +1,38 @@ |
|||||
|
/****************************************************************************** |
||||
|
Point Of Sale - Improve Images module for OpenERP |
||||
|
Copyright (C) 2014 GRAP (http://www.grap.coop) |
||||
|
@author Julien WESTE |
||||
|
@author Sylvain LE GAL (https://twitter.com/legalsylvain) |
||||
|
|
||||
|
This program is free software: you can redistribute it and/or modify |
||||
|
it under the terms of the GNU Affero General Public License as |
||||
|
published by the Free Software Foundation, either version 3 of the |
||||
|
License, or (at your option) any later version. |
||||
|
|
||||
|
This program is distributed in the hope that it will be useful, |
||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
GNU Affero General Public License for more details. |
||||
|
|
||||
|
You should have received a copy of the GNU Affero General Public License |
||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
|
******************************************************************************/ |
||||
|
|
||||
|
/* |
||||
|
New display for 'product-img' and 'product-name' where there isn't image; |
||||
|
*/ |
||||
|
|
||||
|
.product-img-without-image{ |
||||
|
height:25px !important; |
||||
|
} |
||||
|
|
||||
|
.product-name-without-image{ |
||||
|
bottom:auto !important; |
||||
|
top:25px !important; |
||||
|
padding-top:3px !important; |
||||
|
height:80px !important; |
||||
|
font-size: 24px !important; |
||||
|
line-height: 20px; |
||||
|
text-align: center; |
||||
|
word-wrap: break-word; |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<templates id="template" xml:space="preserve"> |
||||
|
<t t-name="ProductNoImage"> |
||||
|
<span class='product' t-att-data-product-id="product.id"> |
||||
|
<div class="product-img-without-image"> |
||||
|
<t t-if="!product.to_weight"> |
||||
|
<span class="price-tag"> |
||||
|
<t t-esc="widget.format_currency(product.price,'Product Price')"/> |
||||
|
</span> |
||||
|
</t> |
||||
|
<t t-if="product.to_weight"> |
||||
|
<span class="price-tag"> |
||||
|
<t t-esc="widget.format_currency(product.price,'Product Price')+'/'+widget.pos.units_by_id[product.uom_id[0]].name"/> |
||||
|
</span> |
||||
|
</t> |
||||
|
</div> |
||||
|
<div class="product-name-without-image"> |
||||
|
<t t-esc="product.display_name"/> |
||||
|
</div> |
||||
|
</span> |
||||
|
</t> |
||||
|
</templates> |
||||
|
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue