|
@ -125,9 +125,9 @@ class super_calendar_configurator(orm.Model): |
|
|
False |
|
|
False |
|
|
), |
|
|
), |
|
|
'configurator_id': configurator.id, |
|
|
'configurator_id': configurator.id, |
|
|
'res_id': line.name.model+','+str(record['id']), |
|
|
|
|
|
|
|
|
'res_id': line.name.model + ',' + str(record['id']), |
|
|
'model_id': line.name.id, |
|
|
'model_id': line.name.id, |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
return super_calendar_values |
|
|
return super_calendar_values |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -142,15 +142,14 @@ class super_calendar_configurator_line(orm.Model): |
|
|
'description_type': fields.selection([ |
|
|
'description_type': fields.selection([ |
|
|
('field', 'Field'), |
|
|
('field', 'Field'), |
|
|
('code', 'Code'), |
|
|
('code', 'Code'), |
|
|
], string="Description Type"), |
|
|
|
|
|
|
|
|
], string="Description Type"), |
|
|
'description_field_id': fields.many2one( |
|
|
'description_field_id': fields.many2one( |
|
|
'ir.model.fields', 'Description field', |
|
|
'ir.model.fields', 'Description field', |
|
|
domain="[('model_id', '=', name),('ttype', '=', 'char')]"), |
|
|
domain="[('model_id', '=', name),('ttype', '=', 'char')]"), |
|
|
'description_code': fields.text( |
|
|
'description_code': fields.text( |
|
|
'Description field', |
|
|
'Description field', |
|
|
help="Use '${o}' to refer to the involved object. " |
|
|
help="Use '${o}' to refer to the involved object. " |
|
|
"E.g.: '${o.project_id.name}'" |
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
"E.g.: '${o.project_id.name}'"), |
|
|
'date_start_field_id': fields.many2one( |
|
|
'date_start_field_id': fields.many2one( |
|
|
'ir.model.fields', 'Start date field', |
|
|
'ir.model.fields', 'Start date field', |
|
|
domain="['&','|',('ttype', '=', 'datetime')," |
|
|
domain="['&','|',('ttype', '=', 'datetime')," |
|
|