You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1013 B

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2019 ACSONE SA/NV
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <odoo>
  5. <record model="ir.model.access" id="contract_line_forecast_period_user_access">
  6. <field name="name">contract.line.forecast.period user access</field>
  7. <field name="model_id" ref="model_contract_line_forecast_period"/>
  8. <field name="group_id" ref="base.group_user"/>
  9. <field name="perm_read" eval="1"/>
  10. <field name="perm_create" eval="1"/>
  11. <field name="perm_write" eval="1"/>
  12. <field name="perm_unlink" eval="1"/>
  13. </record>
  14. <record id="contract_line_forecast_period_comp_rule" model="ir.rule">
  15. <field name="name">Forecast multi company rule</field>
  16. <field name="model_id" ref="model_contract_line_forecast_period"/>
  17. <field name="domain_force">
  18. ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]
  19. </field>
  20. </record>
  21. </odoo>