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

I have a one2many field in res.partner. How i code the one2many field in aeroo report?

Any one knows , how to print one2many field in aeroo report?

อวตาร
ละทิ้ง

please show an example

ผู้เขียน คำตอบที่ดีที่สุด

I had find out a solution for this.

Code is <for each="line in o.one2many field in res.partner table">

<line.fieldname in="" one2many="" field.columnname="">

</for>

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

I cand did it.. im new at this pls explain wih this example:

_name = 'gs.pet'

_columns= {

          'pet_id': fields.char('Código', size=20, required='True'),
           'name': fields.char('Nome', size=60, required='True'),
           'owner_id':fields.many2one('gs.owner','ID_owner'),
           'register_data': fields.date('Data de Registo', required='True'),
           'gender':fields.selection([(1,'Macho'),(2,'Femea')],'Gender',required='True'),
           'born_date':fields.date('Data de Nascimento',required='True'),
           'imagemPet': fields.binary('Imagem'),
            'active': fields.boolean('Activo')
           }

_name = 'gs.owner'

_columns= {

           'owner_id': fields.one2many('gs.pet', 'owner_id','Pets'),
           'name': fields.char('Name', size=60, required='True'),
           'street':fields.char('Adress',size=60, required='True'),
           'phone':fields.char('Phone',size=15, required='True'),
           'imagemOwner': fields.binary('Imagem'),
           'active': fields.boolean('Activo')
           }

I want to list all the pets of the owner I dont know what can I do

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ย. 17
5466
0
มี.ค. 15
3493
Temporary variable in aeroo report แก้ไขแล้ว
1
พ.ค. 17
15478
0
ก.ย. 15
4139
1
มี.ค. 15
6251