Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
6136 มุมมอง

I have created boolean fields in sale.config.settings object, and i need to start the schedular based on the boolean fields value in sale.config.settings object, how to access the field value in openerp

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello maniganda

Py file

Def seting(self,cr,uid,ids,context=none):

sale_obj=self.pool.get('sale.config.settings') sale_bro=sale_obj.browse(cr,uid,ids)[0] value=sale_bro.ur_boolean_field

Return value

อวตาร
ละทิ้ง
ผู้เขียน

I have to create this function in sale.config.settings object? if yes then how to access this method in different object such as sale_order to check the status of the fields

ผู้เขียน

thak you it is working