Merge lp:~openerp-dev/openobject-addons/6.1-opw-577870-bth into lp:openobject-addons/6.1
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-addons/6.1-opw-577870-bth |
Merge into: | lp:openobject-addons/6.1 |
Diff against target: |
42 lines (+13/-10) 1 file modified
point_of_sale/static/src/js/pos.js (+13/-10) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-577870-bth |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+119329@code.launchpad.net |
Description of the change
Hello,
In POS error coming 'result[0] is undefined' or 'unexpected token u' or 'JSON.parse: unexpected character'.
1. Settings => Users => Users => Multi companies is enabled.
2. Settings => Comapnies => Comapnies. one company is created.
3. Few products are added from Products and Select that created company in procurement & locations tab and Select pos category from information tab.
4. Create one user and select created company, give pos access rights, in allowed companies tab select created company.
5. I login to Pos user and click on Point of Sales
Observed: "JSON.parse: unexpected character " . sometimes the error
changes on next login to "syntax error : unexpected character token
u " . or "key pos.ui not found ."
Expected: Open POS Successfully with products.
In get_app_data method rsult[0] is used but result get [].
In Store, get method stored get undefined value and going to be parsed with json so got error.
put if condition for undefined value befpre going to parsed.
Thanks.
Unmerged revisions
- 6946. By Bhumi Thakkar (Open ERP)
-
[IMP] Modify condition.
- 6945. By Bhumi Thakkar (Open ERP)
-
[MERGE] Merge main addons branch.
- 6944. By Bhumi Thakkar (Open ERP)
-
[FIX] put condition for records length in POS.
Hello,
This bug was qualified as Not Relevant on Trunk (means that architecture on trunk has changed and so this bug has no meaning anymore). If this Merge Proposal could not be merged in v6.1 at the release of v7.0, it will be closed.
Thanks,
Naresh Soni