Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3208 Widoki

hello i want to ask how to show hidden button when the value field1 is same with value field2?
i have 3 field and 1 button

#3 field

name_id = fields.Many2one(comodel_name='oeh.medical.patient',

            string="Nama Pasien", ondelete='set null', index=True)

medical_record = fields.Char(related='name_id.identification_code' , string='Nomor Medical Record', invisible=True)

check_medical_record = fields.Char(string='Masukan Medical Record')

#1 button

 @api.multi

    def action_check_medical_record(self):


first i want to invisible field medical_record that related to name_id..
when user choose name_id, the hidden field medical_record will automatically set the value identification.code from model oeh.medical.patient.. 

After that user must fill the check_medical_record field.. if value from hidden field medical_record is same with check_medical_record then the button will show..




Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 24
4295
1
paź 20
3208
1
kwi 24
1674
1
sty 24
14324
1
wrz 18
3691