[imp] added possibility to go back to products screen
bzr revid: nicolas.vanhoren@openerp.com-20120109162126-zq5qphas06jeuf83
This commit is contained in:
parent
10d569c703
commit
c86f880aa0
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue