Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3329 Widoki

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>



Awatar
Odrzuć
Najlepsza odpowiedź

Hello,

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

Hope this could helps

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lis 24
18892
1
sie 24
2052
3
lis 23
2282
0
sie 22
12227
3
gru 19
7022