Carlos Incaser
9 years ago
committed by
Jairo Llopis
8 changed files with 121 additions and 80 deletions
-
6base_custom_info/__openerp__.py
-
2base_custom_info/models/__init__.py
-
18base_custom_info/models/custom_info.py
-
7base_custom_info/security/ir.model.access.csv
-
43base_custom_info/views/custom_info_template_line_view.xml
-
76base_custom_info/views/custom_info_template_view.xml
-
27base_custom_info/views/custom_info_value_view.xml
-
22base_custom_info/views/menu.xml
@ -0,0 +1,7 @@ |
|||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink |
|||
access_custom_info_template_user,custom.info.template.user,model_custom_info_template,base.group_user,1,0,0,0 |
|||
access_custom_info_template_line_user,custom.info.template.line.user,model_custom_info_template_line,base.group_user,1,0,0,0 |
|||
access_custom_info_value_user,custom.info.value.user,model_custom_info_value,base.group_user,1,0,0,0 |
|||
access_custom_info_template_sale_manager,custom.info.template.salemanager,model_custom_info_template,base.group_sale_manager,1,1,1,1 |
|||
access_custom_info_template_line_sale_manager,custom.info.template.line.salemanager,model_custom_info_template_line,base.group_sale_manager,1,1,1,1 |
|||
access_custom_info_value_sale_manager,custom.info.value.salemanager,model_custom_info_value,base.group_sale_manager,1,1,1,1 |
@ -0,0 +1,43 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
|
|||
<record id="base_custom_info_template_line_tree" model="ir.ui.view"> |
|||
<field name="name">base.custom.info.template.line.tree</field> |
|||
<field name="model">custom.info.template.line</field> |
|||
<field name="arch" type="xml"> |
|||
<tree string="Custom Info Templates"> |
|||
<field name="name"/> |
|||
<field name="template_id"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="base_custom_info_template_line_form" model="ir.ui.view"> |
|||
<field name="name">base.custom.info.template.line.form</field> |
|||
<field name="model">custom.info.template.line</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Custom Info Template Lines"> |
|||
<sheet> |
|||
<group> |
|||
<field name="name"/> |
|||
<field name="template_id"/> |
|||
</group> |
|||
<group> |
|||
<field name="info_value_ids"/> |
|||
</group> |
|||
</sheet> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="custom_info_template_line_action" model="ir.actions.act_window"> |
|||
<field name="name">Properties</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">custom.info.template.line</field> |
|||
<field name="view_mode">tree,form</field> |
|||
<field name="view_type">form</field> |
|||
</record> |
|||
|
|||
</data> |
|||
</openerp> |
@ -0,0 +1,27 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
|
|||
<record id="base_custom_info_value_tree" model="ir.ui.view"> |
|||
<field name="name">base.custom.info.value.tree</field> |
|||
<field name="model">custom.info.value</field> |
|||
<field name="arch" type="xml"> |
|||
<tree string="Custom Info Values"> |
|||
<field name="custom_info_name_id"/> |
|||
<field name="value"/> |
|||
<field name="model"/> |
|||
<field name="res_id"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="custom_info_value_action" model="ir.actions.act_window"> |
|||
<field name="name">Values</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">custom.info.value</field> |
|||
<field name="view_mode">tree,form</field> |
|||
<field name="view_type">form</field> |
|||
</record> |
|||
|
|||
</data> |
|||
</openerp> |
@ -0,0 +1,22 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
|
|||
<!--Parent Custom Info in Settings--> |
|||
<menuitem id="menu_base_custom_info" name="Custom Info" |
|||
parent="base.menu_administration" sequence="45"/> |
|||
|
|||
<!--base.custom.info.template--> |
|||
<menuitem id="menu_base_custom_info_template" action="custom_info_template_action" |
|||
parent="menu_base_custom_info" sequence="5"/> |
|||
|
|||
<!--base.custom.info.template.line--> |
|||
<menuitem id="menu_base_custom_info_template_line" action="custom_info_template_line_action" |
|||
parent="menu_base_custom_info" sequence="10"/> |
|||
|
|||
<!--base.custom.info.value--> |
|||
<menuitem id="menu_base_custom_info_value" action="custom_info_value_action" |
|||
parent="menu_base_custom_info" sequence="15"/> |
|||
|
|||
</data> |
|||
</openerp> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue