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

@api.model

def name_search(self, name, args=None, operator='ilike', limit=100):

 if self.env.context.get('get_parent_batch', False):

in these statements 'get_parent_batch' means what?

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

In that statement 'Middle name' is the string argument of the field definition used for field labels.
Read more about it here:

https://www.odoo.com/documentation/10.0/reference/orm.html

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

middle_name = fields.Char('Middle name', size=128)
is equivalent to

middle_name = fileds.Char(string='Middle name', size=128)

the string specifies the label of the field to be displayed when referred in xml

as <field name= middle_name/>

อวตาร
ละทิ้ง