Advertisement
Guest User

Button creator forms

a guest
Aug 21st, 2017
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.68 KB | None | 0 0
  1.     # code of botton who invoke more date therapy
  2.     @api.model
  3.     @api.multi
  4.     def generate_record_name(self, values):
  5.         # Override the original create function for the cronograma.cronograma model
  6.         record = super(cronograma, self).create(values)
  7.         # values to pass for record in new add to database
  8.         record['paciente_id',
  9.                'Nombre',
  10.                'start_date',
  11.                'start_time',
  12.                'duration',
  13.                'end_date',
  14.                'Neuro',
  15.                'Fisio',
  16.                'Logo',
  17.                'TS',
  18.                'TO',] = True
  19.         # return record whit the same form
  20.         return record
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement