Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
3234 Ansichten

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..




Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Apr. 24
4324
1
Okt. 20
3225
1
Apr. 24
1695
1
Jan. 24
14352
1
Sept. 18
3725