Skip to Content
Menú
This question has been flagged
1 Respondre
3996 Vistes

Hi, 

I want to add a field in the tree view inside the form of transfers (stock.picking) . The field is called pcs_per_ctn 

------------------------------

This is my class inheritance:

class StockPicking(models.Model):
_inherit = 'stock.move.line' pcs_per_cartoon = fields.Integer(string="Number of cartons")

--------------------------------------------------

This is my view inheritance:




view.picking.tree.inherited
stock.picking

1001






-------------------------------------- 

The issue is it does generate unknown error and I can't figureout how to add that field inside the tree of the transfer form


Avatar
Descartar

can you post the error here

Best Answer

I do not know what are you doing in the view inheritance. But check this 

https://www.odoo.com/documentation/14.0/developer/howtos/backend.html#view-inheritance

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de juny 21
4652
2
de maig 25
4589
1
de jul. 25
4316
0
de jul. 23
2598
2
de març 15
9507