[FIX] don't allow direct creation or edition of lunch.order.line
authorXavier Morel <xmo@openerp.com>
Mon, 11 Mar 2013 15:46:46 +0000 (16:46 +0100)
committerXavier Morel <xmo@openerp.com>
Mon, 11 Mar 2013 15:46:46 +0000 (16:46 +0100)
lp bug: https://launchpad.net/bugs/1123900 fixed

bzr revid: xmo@openerp.com-20130311154646-ildln8qzl9tx7idh

addons/lunch/lunch_view.xml

index dd38762..a72bf75 100644 (file)
             <field name="name">Order lines Tree</field>
             <field name="model">lunch.order.line</field>
             <field name="arch" type="xml">
-                <tree string="Order lines Tree"> 
+                <tree string="Order lines Tree" create="false" edit="false">
                     <field name='date'/>
                     <field name='user_id'/>
                     <field name='supplier' invisible='1'/>