sale_timesheet_security.xml 664 B

12345678910111213141516
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <odoo noupdate="1">
  3. <!-- Override this rule because in hr_timesheet,
  4. the lowest access right can only see own timesheets (model: account.analytic.line)
  5. and this ir.rule accept all account.analytic.line in its domain.
  6. Therefore, we need to override this rule to change the domain, and then the
  7. rules for the account.analytic.line defined in timesheet will be apply.
  8. -->
  9. <record id="account.account_analytic_line_rule_billing_user" model="ir.rule">
  10. <field name="domain_force">[('project_id', '=', False)]</field>
  11. </record>
  12. </odoo>