[imp] added possibility to go back to products screen

bzr revid: nicolas.vanhoren@openerp.com-20120109162126-zq5qphas06jeuf83
This commit is contained in:
niv-openerp 2012-01-09 17:21:26 +01:00
parent 10d569c703
commit c86f880aa0
3 changed files with 11 additions and 0 deletions

View File

@ -492,6 +492,10 @@
white-space: nowrap;
}
.pos-payment-buttons {
white-space: nowrap;
}
@media print {
#oe_header, #oe_menu, .point-of-sale #topheader, .point-of-sale #leftpane {
display: none;

View File

@ -985,6 +985,10 @@ openerp.point_of_sale = function(db) {
},
start: function() {
$('button#validate-order', this.$element).click(_.bind(this.validateCurrentOrder, this));
$('.oe-back-to-products', this.$element).click(_.bind(this.back, this));
},
back: function() {
this.shop.get('selectedOrder').set({"step": "products"});
},
validateCurrentOrder: function() {
var callback, currentOrder;

View File

@ -130,6 +130,9 @@
</table>
</div>
<div class="pos-payment-buttons">
<button class="oe-back-to-products">
<img src="/web/static/src/img/icons/gtk-go-back.png"></img>
Back to Products</button>
<button id="validate-order">
<img src="/web/static/src/img/icons/gtk-apply.png"></img>
Validate</button>