Merge lp:~openerp-dev/openobject-addons/6.0-opw-17810-ado into lp:openobject-addons/6.0

Proposed by Amit Dodiya (OpenERP)
Status: Approved
Approved by: Naresh(OpenERP)
Approved revision: 4853
Proposed branch: lp:~openerp-dev/openobject-addons/6.0-opw-17810-ado
Merge into: lp:openobject-addons/6.0
Diff against target: 12 lines (+2/-0)
1 file modified
sale/wizard/sale_line_invoice.py (+2/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.0-opw-17810-ado
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Approve
Christophe CHAUVET (community) Approve
Vo Minh Thu Pending
Review via email: mp+77288@code.launchpad.net

Description of the change

Hello Sir,

"[FIX]: Salesman of Invoice is not same as Sale order's Salesman"

I have add the field user and company while creating a invoice from wizard sale_line_invoice and code is back-ported from trunk.

Thanks,
Amit.

To post a comment you must log in.
Revision history for this message
Christophe CHAUVET (christophe-chauvet) wrote :

Hi

Thanks for the fix, it works correctly

Regards,

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

Unmerged revisions

4853. By Amit Dodiya (OpenERP)

[FIX]: Salesman of Invoice is not same as Sale order's Salesman

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'sale/wizard/sale_line_invoice.py'
2--- sale/wizard/sale_line_invoice.py 2011-01-14 00:11:01 +0000
3+++ sale/wizard/sale_line_invoice.py 2011-09-28 07:04:26 +0000
4@@ -73,6 +73,8 @@
5 'comment': order.note,
6 'payment_term': pay_term,
7 'fiscal_position': order.fiscal_position.id or order.partner_id.property_account_position.id,
8+ 'user_id': order.user_id and order.user_id.id or False,
9+ 'company_id': order.company_id and order.company_id.id or False
10 }
11 inv_id = self.pool.get('account.invoice').create(cr, uid, inv)
12 return inv_id