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

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
5604
1
июл. 25
414
2
сент. 25
351
2
сент. 25
1272
1
июл. 25
913