Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4132 Zobrazení

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
Zrušit

can you post the error here

Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
čvn 21
4741
2
kvě 25
4826
1
čvc 25
4413
0
čvc 23
2694
2
bře 15
9577