[MERGE] sync
bzr revid: mat@openerp.com-20130528131634-v0codb0fx6r7p3i0
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
!python {model: stock.picking}: |
|
||||
import netsvc
|
||||
delivery_orders = self.search(cr, uid, [('sale_id','=',ref("sale.sale_order_8"))])
|
||||
last_delivery_order_id = delivery_orders[0]
|
||||
last_delivery_order_id = delivery_orders[-1]
|
||||
wf_service = netsvc.LocalService("workflow")
|
||||
wf_service.trg_validate(uid, 'stock.picking', last_delivery_order_id, 'button_cancel', cr)
|
||||
-
|
||||
|
||||
@@ -413,7 +413,8 @@ class share_wizard(osv.TransientModel):
|
||||
relation_model_id = model_obj.search(cr, UID_ROOT, [('model','=',coldef._obj)])[0]
|
||||
relation_model_browse = model_obj.browse(cr, UID_ROOT, relation_model_id, context=context)
|
||||
relation_osv = self.pool.get(coldef._obj)
|
||||
if coltype == 'one2many':
|
||||
#skip virtual one2many fields (related, ...) as there is no reverse relationship
|
||||
if coltype == 'one2many' and hasattr(coldef, '_fields_id'):
|
||||
# don't record reverse path if it's not a real m2o (that happens, but rarely)
|
||||
dest_model_ci = relation_osv._all_columns
|
||||
reverse_rel = coldef._fields_id
|
||||
|
||||
Reference in New Issue
Block a user