[IMP] base_action_rule: change the field 'server_action_ids' into a many2many
bzr revid: rco@openerp.com-20121220132318-mjc46h4mnw63svok
This commit is contained in:
parent
da4226d807
commit
d29a1bf9b1
|
@ -79,7 +79,7 @@ class base_action_rule(osv.osv):
|
||||||
'act_user_id': fields.many2one('res.users', 'Set Responsible to'),
|
'act_user_id': fields.many2one('res.users', 'Set Responsible to'),
|
||||||
'act_state': fields.selection(_state_get, 'Set State to', size=16),
|
'act_state': fields.selection(_state_get, 'Set State to', size=16),
|
||||||
'act_followers': fields.many2many("res.partner", string="Set Followers"),
|
'act_followers': fields.many2many("res.partner", string="Set Followers"),
|
||||||
'server_action_ids': fields.one2many('ir.actions.server', 'action_rule_id',
|
'server_action_ids': fields.many2many('ir.actions.server',
|
||||||
domain="[('model_id', '=', model_id)]",
|
domain="[('model_id', '=', model_id)]",
|
||||||
string='Server Action',
|
string='Server Action',
|
||||||
help="Example: email reminders, call object service, etc."),
|
help="Example: email reminders, call object service, etc."),
|
||||||
|
@ -319,10 +319,4 @@ class base_action_rule(osv.osv):
|
||||||
context.update({'action': False})
|
context.update({'action': False})
|
||||||
return True
|
return True
|
||||||
|
|
||||||
class actions_server(osv.osv):
|
|
||||||
_inherit = 'ir.actions.server'
|
|
||||||
_columns = {
|
|
||||||
'action_rule_id': fields.many2one("base.action.rule", string="Action Rule")
|
|
||||||
}
|
|
||||||
|
|
||||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||||
|
|
Loading…
Reference in New Issue