Odoo Help


Stock Picking One2Many

Edwin Hndez
on 4/1/16, 11:46 PM 802 views

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

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


class prod_custom(models.Model):

_name = 'prod.custom'

  _inherit = 'stock.picking'

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


<page string= "Materia Prima">

<group string="Materia Prima a Utilizar">

<field name="materiaprima">

<tree string="Ingrese la Materia Prima">

<field name="name"/>





--Ahmed M.Elmubarak--

Ahmed M.Elmubarak
On 4/2/16, 2:47 AM


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

Hope this could helps

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/1/16, 11:46 PM
Seen: 802 times
Last updated: 4/2/16, 2:47 AM