← Back to team overview

openerp-dev-web team mailing list archive

lp:~openerp-dev/openobject-addons/addons-document-type-add-value-ysa into lp:~openobject-training/openobject-addons/training

 

Yogesh(Open ERP) has proposed merging lp:~openerp-dev/openobject-addons/addons-document-type-add-value-ysa into lp:~openobject-training/openobject-addons/training.

Requested reviews:
  Bhumika (OpenERP) (sbh-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/addons-document-type-add-value-ysa/+merge/57475

[FIX] document_type:- add value in type field of ir.attahcment object

[FIX+IMP] document_type:- Remove duplicate type field in view and change the size of type field of ir.attachment object
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/addons-document-type-add-value-ysa/+merge/57475
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/addons-document-type-add-value-ysa.
=== modified file 'document_type/object/ir_attachment_i.py'
--- document_type/object/ir_attachment_i.py	2011-03-31 10:50:48 +0000
+++ document_type/object/ir_attachment_i.py	2011-04-13 11:51:31 +0000
@@ -34,11 +34,11 @@
         ids = doctype_pool.search(cr, uid, [], context=context)
         result = [ (x.code, x.name) \
                 for x in doctype_pool.browse(cr, uid, ids, context=context) ]
-        result.append(('', ''))
+        result += [('url','URL'), ('binary','Binary'),('', '')]
         return result
 
     _columns = {
-        'type': fields.selection(_selection_get_type_id, 'Type', size=32),
+        'type': fields.selection(_selection_get_type_id, 'Type', size=64),
     }
 
     def create(self, cr, uid, vals, context=None):

=== modified file 'document_type/view/ir_attachment_i.xml'
--- document_type/view/ir_attachment_i.xml	2010-12-13 12:04:10 +0000
+++ document_type/view/ir_attachment_i.xml	2011-04-13 11:51:31 +0000
@@ -8,9 +8,6 @@
         <field name="inherit_id" ref="document.view_document_file_form"/>
         <field name="arch" type="xml">
             <data>
-                <field name="user_id" position="after">
-                    <field name="type" select="1"/>
-                </field> 
                 <field name="create_uid" position="replace">
                 </field>
                 <field name="create_date" position="replace">
@@ -31,7 +28,7 @@
         <field name="arch" type="xml">
             <field name="user_id" position="after">
                 <field name="type"/>
-            </field> 
+            </field>
         </field>
     </record>
 


Follow ups