[IMP] ir.attachment : move the fields index_content (from document), mimetype and datas_checksum (from website) to base. In base, the mimetype is computed with the Magic python lib (if installed, else with a custom function using magic number), and the index_content is an implementation of strings unix command. In document, index_content is still computed with the indexer of document module.

This commit is contained in:
Jérome Maes
2014-12-11 16:11:54 +01:00
parent 2583258f93
commit e06adc7e08
5 changed files with 142 additions and 87 deletions
+2 -7
View File
@@ -179,15 +179,10 @@
<xpath expr="//div[@name='creation_div']" position='after'>
<label for="write_uid" string="Modification"/>
<div>
<field name="write_uid" readonly="1" class="oe_inline"/> on
<field name="write_uid" readonly="1" class="oe_inline"/> on
<field name="write_date" readonly="1" class="oe_inline"/>
</div>
</xpath>
<xpath expr="//group[@name='description_group']" position='after'>
<group string="Indexed Content" colspan="4">
<field name="index_content" nolabel="1"/>
</group>
</xpath>
</field>
</record>
@@ -246,7 +241,7 @@
<field name="view_mode">kanban,tree,form</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to create a new document.
Click to create a new document.
</p><p>
The Documents repository gives you access to all attachments, such
as mails, project documents, invoices etc.