-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] portal_backend: portal backend group
- Loading branch information
1 parent
1c5c8c8
commit b1430d3
Showing
12 changed files
with
196 additions
and
32 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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0"?> | ||
<odoo> | ||
|
||
<!-- Portal Backend: partner and user --> | ||
<record model="res.partner" id="partner_portal_advanced"> | ||
<field name="name">John Portal Advanced</field> | ||
<field name="company_name">YourCompany</field> | ||
<field name="street">41 Lakes Street</field> | ||
<field name="city">Rosario</field> | ||
<field name="zip">2000</field> | ||
<field name='country_id' ref='base.us'/> | ||
<field name='state_id' ref='base.state_ar_s'/> | ||
<field name="phone">+54 555-555-5555</field> | ||
<field name="email">portaladvanced@yourcompany.example.com</field> | ||
<field name="tz">Europe/Brussels</field> | ||
<field name="image_1920" type="base64" file="portal_backend/static/img/advanced_partner-image.png"/> | ||
</record> | ||
|
||
<record id="user_portal_advanced" model="res.users" context="{'no_reset_password': True}"> | ||
<field name="partner_id" ref="partner_portal_advanced"/> | ||
<field name="login">portal+</field> | ||
<field name="password">portal+</field> | ||
<field name="company_id" ref="base.main_company"/> | ||
<field name="company_ids" eval="[Command.link(ref('base.main_company'))]"/> | ||
<field name="signature"><![CDATA[<span>-- <br/>Mr Advanced portal</span>]]></field> | ||
<field name="groups_id" eval="[Command.set([ref('base.group_portal'), ref('portal_backend.group_portal_backend')])]"/> | ||
</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
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
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,9 +1,9 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
access_ir_ui_menu_portal,ir.ui.menu.portal,base.model_ir_ui_menu,base.group_portal,1,0,0,0 | ||
access_ir_model_portal,ir.model.portal,base.model_ir_model,base.group_portal,1,0,0,0 | ||
access_ir_fields_portal,ir.model.fields.portal,base.model_ir_model_fields,base.group_portal,1,0,0,0 | ||
access_ir_groups,ir.model.groups.portal,base.model_res_groups,base.group_portal,1,0,0,0 | ||
access_ir_model_data_portal,ir.model.model.data.portal,base.model_ir_model_data,base.group_portal,1,0,1,0 | ||
access_ir_attachment_portal,ir_attachment.portal,base.model_ir_attachment,base.group_portal,1,0,0,0 | ||
access_mail_activity_type_portal,access_mail_activity_type_portal.portal,mail.model_mail_activity_type,base.group_portal,1,0,0,0 | ||
access_mail_channel_portal,mail.group.portal,mail.model_mail_channel,base.group_portal,1,0,1,0 | ||
access_ir_ui_menu_portal,ir.ui.menu.portal,base.model_ir_ui_menu,portal_backend.group_portal_backend,1,0,0,0 | ||
access_ir_model_portal,ir.model.portal,base.model_ir_model,portal_backend.group_portal_backend,1,0,0,0 | ||
access_ir_fields_portal,ir.model.fields.portal,base.model_ir_model_fields,portal_backend.group_portal_backend,1,0,0,0 | ||
access_ir_groups,ir.model.groups.portal,base.model_res_groups,portal_backend.group_portal_backend,1,0,0,0 | ||
access_ir_model_data_portal,ir.model.model.data.portal,base.model_ir_model_data,portal_backend.group_portal_backend,1,0,1,0 | ||
access_ir_attachment_portal,ir_attachment.portal,base.model_ir_attachment,portal_backend.group_portal_backend,1,0,0,0 | ||
access_mail_activity_type_portal,access_mail_activity_type_portal.portal,mail.model_mail_activity_type,portal_backend.group_portal_backend,1,0,0,0 | ||
access_mail_channel_portal,mail.group.portal,mail.model_mail_channel,portal_backend.group_portal_backend,1,0,1,0 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
|
||
<!-- Parent Category --> | ||
<record model="ir.module.category" id="category_portal_advanced"> | ||
<field name="name">Advanced Portal</field> | ||
</record> | ||
|
||
<!-- Portal backend user group --> | ||
<record id="group_portal_backend" model="res.groups"> | ||
<field name="name">Portal Backend</field> | ||
<field name="category_id" ref="base.module_category_user_type"/> | ||
<field name="implied_ids" eval="[Command.link(ref('base.group_portal'))]"/> | ||
</record> | ||
|
||
</odoo> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<!-- Add the button "Apps" for portal users in the dropdown menu in the frontend --> | ||
<template id="link_to_backend" name="Link to backend" inherit_id="portal.user_dropdown"> | ||
<a id="o_backend_user_dropdown_link" position="attributes"> | ||
<attribute name="groups">base.group_user,portal_backend.group_portal_backend</attribute> | ||
</a> | ||
</template> | ||
</odoo> |