Browse Source

[REF] 'document_extract_from_database': split into 'action' and 'view' file

pull/85/head
Sylvain LE GAL 10 years ago
parent
commit
d19f3b0841
  1. 1
      document_extract_from_database/__openerp__.py
  2. 17
      document_extract_from_database/view/action.xml
  3. 11
      document_extract_from_database/view/view.xml

1
document_extract_from_database/__openerp__.py

@ -46,6 +46,7 @@ Then, "More > Document Extraction"
"demo": [],
"data": [
'view/view.xml'
'view/action.xml'
],
'installable': True,
'active': False,

17
document_extract_from_database/view/action.xml

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="action_view_document_multiple_action_form" model="ir.actions.act_window">
<field name="name">Document Extraction</field>
<field name="res_model">document.multiple.action</field>
<field name="type">ir.actions.act_window</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="view_document_multiple_action_form"/>
<field name="target">new</field>
<field name="multi">True</field>
</record>
</data>
</openerp>

11
document_extract_from_database/view/view.xml

@ -19,16 +19,7 @@
</form>
</field>
</record>
<record id="action_view_document_multiple_action_form" model="ir.actions.act_window">
<field name="name">Document Extraction</field>
<field name="res_model">document.multiple.action</field>
<field name="type">ir.actions.act_window</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="view_document_multiple_action_form"/>
<field name="target">new</field>
<field name="multi">True</field>
</record>
<record model="ir.values" id="document_multiple_action">
<field name="model_id" ref="base.model_ir_attachment" />
<field name="name">Document Extraction</field>

Loading…
Cancel
Save