跳至内容
菜单
此问题已终结
1 回复
3962 查看

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

形象
丢弃
相关帖文 回复 查看 活动
1
6月 21
4600
2
5月 25
4498
1
7月 25
4283
0
7月 23
2569
2
3月 15
9469