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

With function field, how can I save the value of the field unless the object is not in draft mode ?

อวตาร
ละทิ้ง

Please do not post duplicate questions. See http://help.openerp.com/question/5522/function-field/

คำตอบที่ดีที่สุด

Hi,

I never tested with argument store, but should work, try :

in file view add this attribute in field :

attrs="{'store': [('state', '=', 'draft')]}"

update module and view.

naturally field state must be present as a field or in context.

Bye

อวตาร
ละทิ้ง