[IMP]event_sale:set eType of Event field after EAN13 Barcode field and updated tooltip of that field as per suggestion

bzr revid: ssu@tinyerp.com-20121126114249-b5wmo4ildkpke8lj
This commit is contained in:
Saurang Suthar 2012-11-26 17:12:49 +05:30
parent b49406ab40
commit d304f95e2f
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ class product(osv.osv):
_inherit = 'product.product'
_columns = {
'event_ok': fields.boolean('Event Subscription', help='Determine if a product needs to create automatically an event registration at the confirmation of a sale order line.'),
'event_type_id': fields.many2one('event.type', 'Type of Event', help='Filter the list of event on this category only, in the sale order lines'),
'event_type_id': fields.many2one('event.type', 'Type of Event', help='Select event types so when we use this product in Sale order line, it will filter events of this type only.'),
}
def onchange_event_ok(self, cr, uid, ids, event_ok, context=None):

View File

@ -10,9 +10,9 @@
<field name="event_ok" on_change="onchange_event_ok(event_ok, context)"/>
<label for="event_ok"/>
</div>
<field name='default_code' position='before'>
<xpath expr="//div[@name='ean']" position="after">
<field name="event_type_id" attrs="{'readonly': [('event_ok', '=', False)]}"/>
</field>
</xpath>
</field>
</record>