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

Is it it posible to creat a One2many field in a custom Moduel in order to create a Picking In or Put?

Here my code, I got this erros


MissingError
One of the documents you are trying to access has been deleted, please try again after refreshing.

models.py


class prod_custom(models.Model):

_name = 'prod.custom'

  _inherit = 'stock.picking'

materiaprima = fields.One2many('stock.picking','name')


XML


<page string= "Materia Prima">

<group string="Materia Prima a Utilizar">

<field name="materiaprima">

<tree string="Ingrese la Materia Prima">

<field name="name"/>

</tree>

</field>

</group>

</page>



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

Hello,

Kindly check the inverse name in the fields.One2many declaration. Have a look to the fields One2many attributes 

Hope this could helps

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 24
19551
Self hosting Odoo custom แก้ไขแล้ว
1
ส.ค. 24
2462
3
พ.ย. 23
2718
0
ส.ค. 22
12862
3
ธ.ค. 19
7303