[MREGE]: Merge with lp:~openerp-commiter/openobject-addons/dev-addons2-rha1
bzr revid: rpa@tinyerp.com-20110203130753-bz7xrrif5ez1uh2j
This commit is contained in:
@@ -264,7 +264,7 @@ class product_pricelist(osv.osv):
|
||||
product_obj.price_get(cr, uid, [product_id],
|
||||
price_type.field)[product_id], round=False, context=context)
|
||||
|
||||
if price:
|
||||
if price >= 0.0:
|
||||
price_limit = price
|
||||
|
||||
price = price * (1.0+(res['price_discount'] or 0.0))
|
||||
|
||||
@@ -1886,6 +1886,14 @@ class stock_move(osv.osv):
|
||||
@return: True
|
||||
"""
|
||||
self.write(cr, uid, ids, {'state': 'confirmed'})
|
||||
|
||||
# fix for bug lp:707031
|
||||
# called write of related picking because changing move availability does
|
||||
# not trigger workflow of picking in order to change the state of picking
|
||||
wf_service = netsvc.LocalService('workflow')
|
||||
for move in self.browse(cr, uid, ids, context):
|
||||
if move.picking_id:
|
||||
wf_service.trg_write(uid, 'stock.picking', move.picking_id.id, cr)
|
||||
return True
|
||||
|
||||
#
|
||||
|
||||
@@ -127,7 +127,7 @@ class stock_invoice_onshipping(osv.osv_memory):
|
||||
res = picking_pool.action_invoice_create(cr, uid, active_ids,
|
||||
journal_id = onshipdata_obj[0]['journal_id'],
|
||||
group = onshipdata_obj[0]['group'],
|
||||
type = None,
|
||||
type = context.get('inv_type'),
|
||||
context=context)
|
||||
return res
|
||||
|
||||
|
||||
Reference in New Issue
Block a user