Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
4147 Представления

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


Аватар
Отменить

can you post the error here

Лучший ответ

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
июн. 21
4757
2
мая 25
4850
1
июл. 25
4418
0
июл. 23
2702
2
мар. 15
9580