Merge lp:~openerp-dev/openobject-addons/7.0-opw-595464-fka into lp:openobject-addons/7.0

Proposed by Foram Katharotiya (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-opw-595464-fka
Merge into: lp:openobject-addons/7.0
Diff against target: 12 lines (+1/-1)
1 file modified
portal_sale/portal_sale_view.xml (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-595464-fka
Reviewer Review Type Date Requested Status
Rifakat Husen (OpenERP) (community) Needs Fixing
OpenERP Core Team Pending
Review via email: mp+176856@code.launchpad.net

Description of the change

Hello,

I have fixed following issue.

Steps to reproduce :
1. Go-to Portal -> Billing -> Invoices
2. Create an invoice and save it, It will give traceback : TypeError: unhashable type: 'list'

Thanks,
FKA

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

Hi Foram,

This problem is already been fixed with 7.0, could you please check with updated source code?
Also this fix is wrong, your fix forbids showing customer refund invoices for portal users where it should
show both customer invoices and refund.

Here is the correct revision,
http://bazaar.launchpad.net/~openerp/openobject-addons/7.0/revision/9227

Thanks,
Rifakat

review: Disapprove
Revision history for this message
Rifakat Husen (OpenERP) (rha-openerp) wrote :

Foram,

There is no way a portal user can create an invoice so the use case if actually wrong. Hence we don't need this fix.
However, I checked that the refund journal is not getting displayed from portal invoice menu.

Could you please fix that?

Thanks a lot for your work,
Rifakat

review: Needs Fixing

Unmerged revisions

9305. By Foram Katharotiya (OpenERP)

[IMP] remove TypeError: unhashable type: 'list'

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'portal_sale/portal_sale_view.xml'
2--- portal_sale/portal_sale_view.xml 2013-03-25 14:50:36 +0000
3+++ portal_sale/portal_sale_view.xml 2013-07-25 04:52:32 +0000
4@@ -64,7 +64,7 @@
5 <field name="res_model">account.invoice</field>
6 <field name="view_mode">tree,form</field>
7 <field name="domain">[('type','in',['out_invoice','out_refund'])]</field>
8- <field name="context">{'type':['out_invoice','out_refund'], 'journal_type': 'sale'}</field>
9+ <field name="context">{'type':'out_invoice', 'journal_type': 'sale'}</field>
10 <field name="search_view_id" ref="account.view_account_invoice_filter"/>
11 <field name="help">We haven't sent you any invoice.</field>
12 </record>