[FIX] point_of_sale typo only load pos enabled products

bzr revid: al@openerp.com-20120505155802-cn11yaxf3hzo4grd
This commit is contained in:
Antony Lesuisse
2012-05-05 17:58:02 +02:00
parent 81f98f3bf7
commit 69000fc4a7
+1 -1
View File
@@ -69,7 +69,7 @@ openerp.point_of_sale = function(db) {
}, this));
}, this));
$.when(this.fetch('pos.category', ['name', 'parent_id', 'child_id']),
this.fetch('product.product', ['name', 'list_price', 'pos_categ_id', 'taxes_id', 'product_image_small', 'ean13', 'id'], [['pos_categ_id', '!=', 'false']]),
this.fetch('product.product', ['name', 'list_price', 'pos_categ_id', 'taxes_id', 'product_image_small', 'ean13', 'id'], [['pos_categ_id', '!=', false]]),
this.fetch('product.packaging', ['product_id', 'ean']),
this.fetch('account.bank.statement', ['account_id', 'currency', 'journal_id', 'state', 'name'],
[['state', '=', 'open'], ['user_id', '=', this.session.uid]]),