savoirfairelinux-openerp team mailing list archive
-
savoirfairelinux-openerp team
-
Mailing list archive
-
Message #00788
lp:~savoirfairelinux-openerp/openerp-icm/sale_commossion_context into lp:openerp-icm
elhadji.dem@xxxxxxxxxxxxxxxxxxxx has proposed merging lp:~savoirfairelinux-openerp/openerp-icm/sale_commossion_context into lp:openerp-icm.
Requested reviews:
Sandy Carter (http://www.savoirfairelinux.com) (sandy-carter)
For more details, see:
https://code.launchpad.net/~savoirfairelinux-openerp/openerp-icm/sale_commossion_context/+merge/201484
[IMP] remove context for _invoice_line_hook method
--
https://code.launchpad.net/~savoirfairelinux-openerp/openerp-icm/sale_commossion_context/+merge/201484
Your team Savoir-faire Linux' OpenERP is subscribed to branch lp:~savoirfairelinux-openerp/openerp-icm/sale_commossion_context.
=== modified file 'sale_commission/stock_picking.py'
--- sale_commission/stock_picking.py 2013-12-16 22:05:58 +0000
+++ sale_commission/stock_picking.py 2014-01-13 18:31:29 +0000
@@ -48,7 +48,7 @@
if context is None:
context = {}
agent_pool = self.pool.get('invoice.line.agent')
- super(stock_picking, self)._invoice_line_hook(cr, uid, move_line, invoice_line_id, context=context)
+ super(stock_picking, self)._invoice_line_hook(cr, uid, move_line, invoice_line_id)
if move_line and move_line.sale_line_id and not move_line.sale_line_id.product_id.commission_exent:
so_ref = move_line.sale_line_id.order_id
for so_agent_id in so_ref.sale_agent_ids:
Follow ups