Community mailing list archives

community@mail.odoo.com

Re: editable field in tree view

by
Ait-Mlouk Addi
- 12/22/2014 10:02:29
Hi
try this 

  <!-- tree -->
    
    <record model="ir.ui.view" id="view_id">
            <field name="name">event.registration.tree</field>
            <field name="model">event.registration</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Events" editable="bottom">
                <field name="paid" />
                <field name="elo" />
                <field name="cert" />
                <field name="sent" />
                </tree>
            </field>
    </record>

2014-12-22 15:38 GMT+01:00 cody vanwilpe <codyvanwilpe@gmail.com>:
Hi,

I am looking for a solution to have an editable field in de standard
tree view. I have made new field and they are listed on the correct
tree view. But I can not make them editable in tree view. Does anyone
know how we can make it possible?

Cody

.py:

class event_registration(osv.osv):
      _name = 'event.registration'
      _inherit = 'event.registration'
      _columns = {
      'paid': fields.boolean('paid'),
      'elo': fields.boolean('online learning'),
      'cert': fields.boolean('Certificate'),
      'sent': fields.boolean('sent'),
      }
event_registration()

.xml


            event.registration.2
            event.registration
            
            tree
            
                    
                    
                    
                    
                    
            
            

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
----------------------------
Mr. Ait Mlouk Addi
Consultant Technico-Fonctionnel Junior Odoo
Etudiant Chercheur à l'Univéristé Caddi Ayyad, 
Faculté des Sciences Semlalia Marrakech

Tél 0672977726
Site Web : odoo-services
Profilelinkedin                  Profile : viadeo               Profile : Github