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

hello everyone , i just created a module on openerp7 , it has a registration form and wanted to add a field where i can load the user picture .. can anyone give me any hints??

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

in python :

 _columns = { 'image': fields.binary("Image",), }

in xml :

<field name="image" widget='image' class="oe_avatar oe_left"  />
อวตาร
ละทิ้ง
ผู้เขียน

Thank you very much :)

Related Posts ตอบกลับ มุมมอง กิจกรรม
Created module , new moduel แก้ไขแล้ว
5
เม.ย. 19
6137
1
เม.ย. 16
4324
1
มี.ค. 15
8909
5
ม.ค. 24
16447
4
มี.ค. 15
6173