[FIX] purchase: payment_term_id twice in the view
authorDenis Ledoux <dle@odoo.com>
Mon, 29 Sep 2014 08:48:25 +0000 (10:48 +0200)
committerDenis Ledoux <dle@odoo.com>
Mon, 29 Sep 2014 08:49:01 +0000 (10:49 +0200)
+ replace widget selection by options no_open no_create

addons/purchase/purchase_view.xml

index 1ccd8af..5212888 100644 (file)
                         </page>
                         <page string="RFQ &amp; Bid">
                             <group>
-                                <field name="payment_term_id" widget="selection"/>
                                 <field name="incoterm_id"/>
                                 <field name="bid_date"/>
                                 <field name="bid_validity"/>
                                 <group>
                                     <field name="invoice_method"/>
                                     <field name="invoiced"/>
-                                    <field name="payment_term_id" widget="selection"/>
+                                    <field name="payment_term_id" options="{'no_open': True, 'no_create': True}"/>
                                     <field name="fiscal_position" attrs="{'readonly': [('invoiced','=', True)]}" />
                                     <!-- We do not need these fields anymore, the information is in open chatter -->
                                     <field name="validator" groups="base.group_no_one"/>