Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4028 Widoki

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


Awatar
Odrzuć

can you post the error here

Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
cze 21
4676
2
maj 25
4655
1
lip 25
4347
0
lip 23
2625
2
mar 15
9516