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

Can anyone help for adding group to reports through code.

Аватар
Отменить
Лучший ответ

I know that, my answer is very late but maybe this will help others:
Odoo 11.0 

Override Request for Quotation  report by adding a group to the access security list of the report.

<record id="purchase.report_purchase_quotation" model="ir.actions.report">
<field name="name">Request for Quotation</field>
<field name="model">purchase.order</field>
<field name="report_name">purchase.report_purchasequotation</field>
<field name="groups_id" eval="[(4, ref('hide_prices.view_price'))]"/>
</record>

Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
июл. 24
4532
0
окт. 19
3150
1
нояб. 18
2951
0
июл. 18
3860
3
янв. 18
6159