Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4029 Weergaven

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
Annuleer

can you post the error here

Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
jun. 21
4676
2
mei 25
4655
1
jul. 25
4348
0
jul. 23
2625
2
mrt. 15
9516