Merge lp:~openerp-dev/openobject-addons/trunk-opw-575341-port-sgo into lp:openobject-addons

Proposed by Sanjay Gohel (Open ERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-opw-575341-port-sgo
Merge into: lp:openobject-addons
Diff against target: 26 lines (+4/-1)
2 files modified
point_of_sale/static/src/js/db.js (+3/-0)
point_of_sale/static/src/js/models.js (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-opw-575341-port-sgo
Reviewer Review Type Date Requested Status
Purnendu Singh (OpenERP) Pending
Review via email: mp+137555@code.launchpad.net

Description of the change

Hello,

    I have improved search in pos in such way that user can find product on based of internal reference.

Thank You.
Sanjay Gohel
(SGO)

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

please give credit to the author of the fix when forward porting from 6.1 by using --author flag while committing.

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

also copy the description and append to it "Forward port from 6.1" so that the reviewer can know about it

Unmerged revisions

8186. By Sanjay Gohel (Open ERP)

[IMP]can search on based of internal refernce also

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'point_of_sale/static/src/js/db.js'
2--- point_of_sale/static/src/js/db.js 2012-11-28 06:29:26 +0000
3+++ point_of_sale/static/src/js/db.js 2012-12-03 13:02:30 +0000
4@@ -118,6 +118,9 @@
5 if(product.ean13){
6 str += '|' + product.ean13;
7 }
8+ if(product.default_code){
9+ str += '|' + product.default_code;
10+ }
11 var packagings = this.packagings_by_product_id[product.id] || [];
12 for(var i = 0; i < packagings.length; i++){
13 str += '|' + packagings[i].ean;
14
15=== modified file 'point_of_sale/static/src/js/models.js'
16--- point_of_sale/static/src/js/models.js 2012-11-26 09:36:11 +0000
17+++ point_of_sale/static/src/js/models.js 2012-12-03 13:02:30 +0000
18@@ -170,7 +170,7 @@
19
20 return self.fetch(
21 'product.product',
22- ['name', 'list_price','price','pos_categ_id', 'taxes_id', 'ean13',
23+ ['name', 'list_price','price','pos_categ_id', 'taxes_id', 'ean13', 'default_code',
24 'to_weight', 'uom_id', 'uos_id', 'uos_coeff', 'mes_type', 'description_sale', 'description'],
25 [['sale_ok','=',true],['available_in_pos','=',true]],
26 {pricelist: self.get('shop').pricelist_id[0]} // context for price

Subscribers

People subscribed via source and target branches

to all changes: