Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2605 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ค. 18
5788
1
ก.ค. 25
587
3
ต.ค. 25
3220
2
ก.ย. 25
824
2
ก.ย. 25
1665