Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4174 Visualizzazioni

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
Abbandona

can you post the error here

Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
giu 21
4769
2
mag 25
4873
1
lug 25
4424
0
lug 23
2730
2
mar 15
9588