Browse Source

Add export permission

pull/67/head
Sandip Mangukiya 8 years ago
committed by Olivier Jossen
parent
commit
740919f013
  1. 3
      base_export_manager/README.rst
  2. 2
      base_export_manager/__openerp__.py
  3. 84
      base_export_manager/views/ir_exports_view.xml

3
base_export_manager/README.rst

@ -44,8 +44,7 @@ To manage export profiles, you need to:
* Choose a name.
* Choose a model (table in the database).
* Choose the fields to export.
* If you choose a related field, you can choose also up to 3 levels of
subfields.
* If you choose a related field, you can choose also up to 3 levels of subfields.
* You can drag & drop to reorder the fields.
To use one of those profiles, you need to:

2
base_export_manager/__openerp__.py

@ -5,7 +5,7 @@
{
'name': "Manage model export profiles",
'category': 'Personalization',
'version': '9.0.1.0.0',
'version': '9.0.1.1.0',
'depends': [
'web',
],

84
base_export_manager/views/ir_exports_view.xml

@ -1,84 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="ir_exports_action" model="ir.actions.act_window">
<field name="name">Export Profiles</field>
<field name="res_model">ir.exports</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem id="ir_exports_menu"
parent="base.next_id_2"
name="Export Profiles"
action="ir_exports_action"/>
<record id="ir_exports_tree_view" model="ir.ui.view">
<field name="name">Export Profile tree</field>
<field name="model">ir.exports</field>
<field name="arch" type="xml">
<tree string="Export Profiles">
<field name="name"/>
<field name="model_id"/>
<field name="resource"/>
</tree>
</field>
</record>
<record id="ir_exports_form_view" model="ir.ui.view">
<field name="name">Export Profile form</field>
<field name="model">ir.exports</field>
<field name="arch" type="xml">
<form string="Export Profile">
<group>
<field name="name"/>
<field name="model_id"
options="{'no_create': True}"/>
<field name="resource"/>
</group>
<group>
<field name="export_fields" nolabel="1"
context="{'default_model1_id': model_id}">
<tree editable="bottom">
<field name="sequence" widget="handle"/>
<field name="model1_id" invisible="True"/>
<field name="model2_id" invisible="True"/>
<field name="model3_id" invisible="True"/>
<field name="label"/>
<field name="name"/>
<field
name="field1_id"
required="True"
options="{
'no_open': True,
'no_create': True,
}"/>
<field
name="field2_id"
attrs="{
'readonly': [('model2_id', '=', False)],
}"
options="{
'no_open': True,
'no_create': True,
}"/>
<field
name="field3_id"
attrs="{
'readonly': [('model3_id', '=', False)],
}"
options="{
'no_open': True,
'no_create': True,
}"/>
</tree>
</field>
</group>
</form>
</field>
</record>
</odoo>
Loading…
Cancel
Save