Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # code of botton who invoke more date therapy
- @api.model
- @api.multi
- def generate_record_name(self, values):
- # Override the original create function for the cronograma.cronograma model
- record = super(cronograma, self).create(values)
- # values to pass for record in new add to database
- record['paciente_id',
- 'Nombre',
- 'start_date',
- 'start_time',
- 'duration',
- 'end_date',
- 'Neuro',
- 'Fisio',
- 'Logo',
- 'TS',
- 'TO',] = True
- # return record whit the same form
- return record
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement