Merge lp:~openerp-dev/openobject-addons/6.0-opw-574284-skh into lp:openobject-addons/6.0

Proposed by Somesh Khare
Status: Approved
Approved by: Naresh(OpenERP)
Approved revision: 5218
Proposed branch: lp:~openerp-dev/openobject-addons/6.0-opw-574284-skh
Merge into: lp:openobject-addons/6.0
Diff against target: 28 lines (+5/-6)
1 file modified
stock/stock.py (+5/-6)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.0-opw-574284-skh
Reviewer Review Type Date Requested Status
Nhomar - Vauxoo (community) Approve
Naresh(OpenERP) (community) Approve
Review via email: mp+104367@code.launchpad.net

Description of the change

Hello Sir,

[Fix]: Create invoice from picking error.

This branch fixes the issue.

Thanks & Regards,
OpenERP Support

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

When this merge will be done?

Regards.

review: Approve

Unmerged revisions

5218. By Somesh Khare

[FIX] Stock.py : Create invoice from picking error (Case: ref 574284)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'stock/stock.py'
2--- stock/stock.py 2012-04-30 14:27:39 +0000
3+++ stock/stock.py 2012-05-02 11:35:27 +0000
4@@ -985,7 +985,11 @@
5 if picking.invoice_state != '2binvoiced':
6 continue
7 payment_term_id = False
8- partner = picking.address_id and picking.address_id.partner_id
9+ address_contact_id, address_invoice_id = \
10+ self._get_address_invoice(cr, uid, picking).values()
11+ address = address_obj.browse(cr, uid, address_contact_id, context=context)
12+
13+ partner = address.partner_id
14 if not partner:
15 raise osv.except_osv(_('Error, no partner !'),
16 _('Please put a partner on the picking list if you want to generate invoice.'))
17@@ -998,11 +1002,6 @@
18 payment_term_id = self._get_payment_term(cr, uid, picking)
19 else:
20 account_id = partner.property_account_payable.id
21-
22- address_contact_id, address_invoice_id = \
23- self._get_address_invoice(cr, uid, picking).values()
24- address = address_obj.browse(cr, uid, address_contact_id, context=context)
25-
26 comment = self._get_comment_invoice(cr, uid, picking)
27 if group and partner.id in invoices_group:
28 invoice_id = invoices_group[partner.id]