Amit Dodiya (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-17810-ado into
lp:openobject-addons/6.0.
Requested reviews:
Raphael Collet (OpenERP) (rco-openerp)
Related bugs:
Bug #821486 in OpenERP Addons: "The invoice user_id is not already the same
that sale order user_id"
https://bugs.launchpad.net/openobject-addons/+bug/821486
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-17810-ado/+merge/77288
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.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-17810-ado/+merge/77288
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-17810-ado.
=== modified file 'sale/wizard/sale_line_invoice.py'
--- sale/wizard/sale_line_invoice.py 2011-01-14 00:11:01 +0000
+++ sale/wizard/sale_line_invoice.py 2011-09-28 07:04:26 +0000
@@ -73,6 +73,8 @@
'comment': order.note,
'payment_term': pay_term,
'fiscal_position': order.fiscal_position.id or order.partner_id.property_account_position.id,
+ 'user_id': order.user_id and order.user_id.id or False,
+ 'company_id': order.company_id and order.company_id.id or False
}
inv_id = self.pool.get('account.invoice').create(cr, uid, inv)
return inv_id
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp