コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3454 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
11月 24
19501
1
8月 24
2412
3
11月 23
2695
0
8月 22
12820
3
12月 19
7278