mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-26 22:52:03 +02:00
Initial commit: Sale packages
This commit is contained in:
commit
14e3d26998
6469 changed files with 2479670 additions and 0 deletions
|
|
@ -0,0 +1,6 @@
|
|||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
access_project_sale_line_employee_map,access_project_sale_line_employee_map,model_project_sale_line_employee_map,base.group_user,1,0,0,0
|
||||
access_project_sale_line_employee_map_manager,access_project_sale_line_employee_map_project_manager,model_project_sale_line_employee_map,project.group_project_manager,1,1,1,1
|
||||
access_project_create_sale_order,access.project.create.sale.order,model_project_create_sale_order,sales_team.group_sale_salesman,1,1,1,0
|
||||
access_project_create_sale_order_line,access.project.create.sale.order.line,model_project_create_sale_order_line,sales_team.group_sale_salesman,1,1,1,1
|
||||
access_project_create_invoice,access.project.create.invoice,model_project_create_invoice,sales_team.group_sale_salesman_all_leads,1,1,1,0
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo noupdate="1">
|
||||
|
||||
|
||||
<!-- Override this rule because in hr_timesheet,
|
||||
the lowest access right can only see own timesheets (model: account.analytic.line)
|
||||
and this ir.rule accept all account.analytic.line in its domain.
|
||||
Therefore, we need to override this rule to change the domain, and then the
|
||||
rules for the account.analytic.line defined in timesheet will be apply.
|
||||
-->
|
||||
<record id="account.account_analytic_line_rule_readonly_user" model="ir.rule" forcecreate="False">
|
||||
<field name="domain_force">[('project_id', '=', False)]</field>
|
||||
</record>
|
||||
<record id="account.account_analytic_line_rule_billing_user" model="ir.rule">
|
||||
<field name="domain_force">[('project_id', '=', False)]</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue