跳至內容
選單
此問題已被標幟
2 回覆
2567 瀏覽次數

by default when we create stages, it will visible in all companies. How to make company specific stages? Is there any possibility to make this without record rules?If yes please provide.
Thanks in adwance.

頭像
捨棄
最佳答案

Is there anyway to do this through the GUI?  Settings, Technical, Models, Add a line.....? 

頭像
捨棄
最佳答案

Hi,

By default, we don't have this option, but this can be achieved by adding a new field in the project.project.stage model and in the view.

company_id = fields.Many2one('res.company', string='Company', default=lambda self: self.env.company))

After adding this field, you can now override the stage_id field defined in project.project model and add the field parameter company_dependent=True for making the stages company-specific.


Thanks

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
7月 18
5764
1
7月 25
563
2
9月 25
780
2
9月 25
1569
1
7月 25
1205