Xavier ALT (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-573085-xal into
lp:openobject-addons/6.0.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-573085-xal/+merge/99269
Hello,
- Log-in to a demo database with "Admin" user
- Create a Sale Order with 'invoicing method' as 'Invoice From The Picking'.
- Set salesman as "Demo"
- Confirm the Sale Order
- Process the picking, and create final invoice
Current: The resulting invoice will have "Admin" user as Salesman
Expected: The resulting invoice should have "Demo" user as Salesman.
Please kind review it,
Cheers,
Xavier
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-573085-xal/+merge/99269
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-573085-xal.
=== modified file 'sale/stock.py'
--- sale/stock.py 2012-02-21 19:16:22 +0000
+++ sale/stock.py 2012-03-26 09:03:19 +0000
@@ -140,6 +140,7 @@
if picking.sale_id.client_order_ref:
inv_name = picking.sale_id.client_order_ref + " : " + invoice_created.name
invoice_obj.write(cursor, user, [invoice_created.id], {'name': inv_name}, context=context)
+ invoice_obj.write(cursor, user, [invoice_created.id], {'user_id': picking.sale_id.user_id.id or False}, context=context)
for sale_line in sale_lines:
if sale_line.product_id.type == 'service' and sale_line.invoiced == False:
if group:
_______________________________________________
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