Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3461 Visualizzazioni

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>



Avatar
Abbandona
Risposta migliore

Hello,

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

Hope this could helps

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
nov 24
19530
1
ago 24
2422
3
nov 23
2711
0
ago 22
12844
3
dic 19
7292