[IMP] Name of method changed
bzr revid: ggh@tinyerp.com-20130411051350-0esvxad9a189x8iz
This commit is contained in:
@@ -1310,7 +1310,7 @@ class product_product(osv.osv):
|
||||
'to_weight' : fields.boolean('To Weight', help="Check if the product should be weighted (mainly used with self check-out interface)."),
|
||||
}
|
||||
|
||||
def default_pos_categ_id(self, cr, uid, ids, available_in_pos=None, context=None):
|
||||
def onchange_available_pos(self, cr, uid, ids, available_in_pos=None, context=None):
|
||||
proxy = self.pool.get('ir.model.data')
|
||||
category_id = False
|
||||
if ids and available_in_pos:
|
||||
|
||||
@@ -614,7 +614,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<group name="sale" position="inside">
|
||||
<group name="pos" string="Point of Sale">
|
||||
<field name="available_in_pos" on_change="default_pos_categ_id(available_in_pos)"/>
|
||||
<field name="available_in_pos" on_change="onchange_available_pos(available_in_pos)"/>
|
||||
<field name="pos_categ_id"/>
|
||||
<field name="to_weight" />
|
||||
<field name="income_pdt"/>
|
||||
|
||||
Reference in New Issue
Block a user