Browse Source

[REF] 'document_extract_from_database': Create 'data' folder

pull/85/head
Sylvain LE GAL 10 years ago
parent
commit
e13fd41327
  1. 5
      document_extract_from_database/__openerp__.py
  2. 15
      document_extract_from_database/data/ir_values.xml
  3. 9
      document_extract_from_database/view/view.xml

5
document_extract_from_database/__openerp__.py

@ -45,8 +45,9 @@ Then, "More > Document Extraction"
""",
"demo": [],
"data": [
'view/view.xml'
'view/action.xml'
'view/view.xml',
'view/action.xml',
'data/ir_values.xml',
],
'installable': True,
'active': False,

15
document_extract_from_database/data/ir_values.xml

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.values" id="document_multiple_action">
<field name="model_id" ref="base.model_ir_attachment" />
<field name="name">Document Extraction</field>
<field name="key2">client_action_multi</field>
<field name="value" eval="'ir.actions.act_window,' + str(ref('action_view_document_multiple_action_form'))" />
<field name="key">action</field>
<field name="model">ir.attachment</field>
</record>
</data>
</openerp>

9
document_extract_from_database/view/view.xml

@ -20,14 +20,5 @@
</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>
<field name="key2">client_action_multi</field>
<field name="value" eval="'ir.actions.act_window,' + str(ref('action_view_document_multiple_action_form'))" />
<field name="key">action</field>
<field name="model">ir.attachment</field>
</record>
</data>
</openerp>
Loading…
Cancel
Save