Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3276 Lượt xem

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




Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 24
4387
1
thg 10 20
3255
1
thg 4 24
1745
1
thg 1 24
14419
1
thg 9 18
3775