Skip to content

Commit

Permalink
[FIX] delivery_distribution_list: groups interface
Browse files Browse the repository at this point in the history
  • Loading branch information
remytms committed Jan 23, 2023
1 parent eed9574 commit 52abcd9
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 11 deletions.
3 changes: 1 addition & 2 deletions delivery_distribution_list/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
"website": "https://coopiteasy.be",
"category": "Sales",
"depends": [
"sale",
"sale_management",
"account",
"contacts",
],
"data": [
"security/delivery_distribution_list_security.xml",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<record model="ir.module.category" id="module_category_distribution_list">
<field name="name">Distribution List</field>
</record>

<record id="group_distribution_user" model="res.groups">
<field name="name">Distribution User</field>
<field name="category_id" ref="module_category_distribution_list" />
<field name="implied_ids" eval="[(4, ref('base.group_no_one'))]" />
</record>

<record id="group_distribution_manager" model="res.groups">
<field name="name">Distribution Manager</field>
<field name="implied_ids" eval="[(4, ref('group_distribution_user'))]" />
<field name="users" eval="[(4, ref('base.user_root'))]" />
<field name="category_id" ref="module_category_distribution_list" />
<field
name="implied_ids"
eval="[(4, ref('delivery_distribution_list.group_distribution_user'))]"
/>
<field
name="users"
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"
/>
</record>
</odoo>
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<menuitem
name="Delivery Distribution"
id="menu_delivery_distribution"
parent="sale.sale_menu_root"
sequence="4"
groups="delivery_distribution_list.group_distribution_user"
/>

<record id="view_ddl_form" model="ir.ui.view">
<field name="name">delivery.distribution.list.form</field>
<field name="model">delivery.distribution.list</field>
Expand Down
7 changes: 0 additions & 7 deletions delivery_distribution_list/views/partner_view.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<menuitem
name="Delivery Distribution"
id="menu_delivery_distribution"
parent="contacts.menu_contacts"
sequence="10"
groups="delivery_distribution_list.group_distribution_user"
/>

<record id="view_partner_form_ddl" model="ir.ui.view">
<field name="name">res.partner.form.ddl</field>
Expand Down

0 comments on commit 52abcd9

Please sign in to comment.