-
-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX base_grp_backend: precommit and better names in ir.model.access
- Loading branch information
Showing
8 changed files
with
80 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,5 +19,4 @@ | |
"security/ir.model.access.csv", | ||
], | ||
"installable": True, | ||
"application": True | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
from odoo.tools import config | ||
|
||
if not config['without_demo']: | ||
if not config["without_demo"]: | ||
from . import backend_dummy_model | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
from odoo import fields, models | ||
|
||
|
||
class BackendDummyModel(models.Model): | ||
_name = "backend.dummy.model" | ||
_inherit = ["mail.activity.mixin"] | ||
_description = 'Nothing to see here' | ||
_description = "Backend Dummy Model demo" | ||
|
||
my_value = fields.Char(name="Value", required=True) | ||
my_other_value = fields.Char(name="Other value", required=True) | ||
date_start = fields.Datetime(name="Date start", required=True, default=fields.Datetime.now) | ||
date_stop = fields.Datetime(name="Date stop", required=True, default=fields.Datetime.now) | ||
date_start = fields.Datetime( | ||
name="Date start", required=True, default=fields.Datetime.now | ||
) | ||
date_stop = fields.Datetime( | ||
name="Date stop", required=True, default=fields.Datetime.now | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,45 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<data> | ||
<record id="backend_dummy_model_tree_view" model="ir.ui.view"> | ||
<field name="name">Backend dummy tree view</field> | ||
<field name="model">backend.dummy.model</field> | ||
<field name="arch" type="xml"> | ||
<tree string="Dummies" create="false" delete="false"> | ||
<field name="my_value"/> | ||
<field name="my_other_value"/> | ||
</tree> | ||
</field> | ||
</record> | ||
<record id="action_dummy_list" model="ir.actions.act_window"> | ||
<field name="name">Dummies</field> | ||
<field name="type">ir.actions.act_window</field> | ||
<field name="res_model">backend.dummy.model</field> | ||
<field name="view_mode">tree,form,kanban,calendar,pivot,graph,activity</field> | ||
<field name="view_id" ref="backend_dummy_model_tree_view" /> | ||
</record> | ||
<menuitem | ||
id="menu_dummy_root" | ||
name="Dummy" | ||
sequence="100" | ||
groups="group_backend,base.group_user" | ||
/> | ||
<menuitem | ||
id="menu_dummy_menu" | ||
name="Dummy" | ||
sequence="10" | ||
groups="group_backend,base.group_user" | ||
parent="menu_dummy_root" | ||
/> | ||
<menuitem | ||
id="menu_dummy_list" | ||
name="Dummy list" | ||
sequence="100" | ||
groups="group_backend,base.group_user" | ||
parent="menu_dummy_root" | ||
action="action_dummy_list" | ||
/> | ||
</data> | ||
|
||
<record id="backend_dummy_model_tree_view" model="ir.ui.view"> | ||
<field name="name">Backend dummy tree view</field> | ||
<field name="model">backend.dummy.model</field> | ||
<field name="arch" type="xml"> | ||
<tree create="false" delete="false"> | ||
<field name="my_value" /> | ||
<field name="my_other_value" /> | ||
</tree> | ||
</field> | ||
</record> | ||
|
||
<record id="action_dummy_list" model="ir.actions.act_window"> | ||
<field name="name">Dummies</field> | ||
<field name="type">ir.actions.act_window</field> | ||
<field name="res_model">backend.dummy.model</field> | ||
<field name="view_mode">tree,form,kanban,calendar,pivot,graph,activity</field> | ||
<field name="view_id" ref="backend_dummy_model_tree_view" /> | ||
</record> | ||
|
||
<menuitem | ||
id="menu_dummy_root" | ||
name="Dummy" | ||
sequence="100" | ||
groups="group_backend,base.group_user" | ||
/> | ||
<menuitem | ||
id="menu_dummy_menu" | ||
name="Dummy" | ||
sequence="10" | ||
groups="group_backend,base.group_user" | ||
parent="menu_dummy_root" | ||
/> | ||
<menuitem | ||
id="menu_dummy_list" | ||
name="Dummy list" | ||
sequence="100" | ||
groups="group_backend,base.group_user" | ||
parent="menu_dummy_root" | ||
action="action_dummy_list" | ||
/> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" | ||
"access_backend_dummy_models","backend_dummy_model all","base_group_backend.model_backend_dummy_model",group_backend,1,0,0,0 | ||
"access_backend_dummy_models_all","backend_dummy_model all","base_group_backend.model_backend_dummy_model",base.group_user,1,0,0,0 | ||
"backend_dummy_models","backend dummy.model","model_backend_dummy_model",group_backend,1,0,0,0 | ||
"backend_dummy_models_user_grp","backend dummy.model user grp","model_backend_dummy_model",base.group_user,1,0,0,0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<odoo> | ||
<data> | ||
<record model="backend.dummy.model" id="dummy_model_1"> | ||
<field name="my_value">hello</field> | ||
<field name="my_other_value">hello</field> | ||
</record> | ||
</data> | ||
|
||
<record model="backend.dummy.model" id="dummy_model_1"> | ||
<field name="my_value">hello</field> | ||
<field name="my_other_value">hello</field> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
access_res_users_all,res_users all,model_res_users,group_backend,1,0,0,0 | ||
access_res_partners_all,res_partners all,base.model_res_partner,group_backend,1,0,0,0 | ||
access_ir_ui_menu_group_user,ir_ui_menu group_user,base.model_ir_ui_menu,group_backend,1,0,0,0 | ||
access_ir_filter_user,ir_filters all,base.model_ir_filters,group_backend,1,1,1,1 | ||
access_bus_presence,bus.presence,bus.model_bus_presence,group_backend,1,1,1,1 | ||
access_mail_channel_member_user,mail.channel.member.user,mail.model_mail_channel_member,group_backend,1,1,1,0 | ||
access_mail_channel_user,mail.group.user,mail.model_mail_channel,group_backend,1,1,1,0 | ||
access_mail_notification_user,mail.notification.user,mail.model_mail_notification,group_backend,1,1,1,0 | ||
access_mail_activity_user,mail.activity.user,mail.model_mail_activity,group_backend,1,1,1,1 | ||
access_mail_activity_type_user,mail.activity.type.user,mail.model_mail_activity_type,group_backend,1,0,0,0 | ||
access_ir_attachment_group_user,ir_attachment group_user,base.model_ir_attachment,group_backend,1,0,0,0 | ||
access_mail_followers_user,mail.followers.user,mail.model_mail_followers,group_backend,1,0,0,0 | ||
res_users_backend,backend user res.users,base.model_res_users,group_backend,1,0,0,0 | ||
res_partner_backend,backend user res.partner,base.model_res_partner,group_backend,1,0,0,0 | ||
ir_ui_menu_backend,backend user ir.ui.menu,base.model_ir_ui_menu,group_backend,1,0,0,0 | ||
ir_filter_backend,backend user ir.filters,base.model_ir_filters,group_backend,1,1,1,1 | ||
bus_presence_backend,backend user bus.presence,bus.model_bus_presence,group_backend,1,1,1,1 | ||
mail_channel_member_backend,backend user mail.channel.member,mail.model_mail_channel_member,group_backend,1,1,1,0 | ||
mail_channel_backend,backend user mail.group,mail.model_mail_channel,group_backend,1,1,1,0 | ||
mail_notification_backend,backend user mail.notification,mail.model_mail_notification,group_backend,1,1,1,0 | ||
mail_activity_backend,backend user mail.activity,mail.model_mail_activity,group_backend,1,1,1,1 | ||
mail_activity_type_backend,backend user mail.activity.type,mail.model_mail_activity_type,group_backend,1,0,0,0 | ||
ir_attachment_group_backend,backend user ir.attachment,base.model_ir_attachment,group_backend,1,0,0,0 | ||
mail_followers_backend,backend user mail.followers,mail.model_mail_followers,group_backend,1,0,0,0 |