[REM] Remove the onchange pos available method
bzr revid: ggh@tinyerp.com-20130417052737-4t5ejcwzkkkgfqdj
This commit is contained in:
parent
794455418c
commit
735a20f320
|
@ -1340,14 +1340,6 @@ 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)."),
|
'to_weight' : fields.boolean('To Weight', help="Check if the product should be weighted (mainly used with self check-out interface)."),
|
||||||
}
|
}
|
||||||
|
|
||||||
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:
|
|
||||||
for pos_id in self.browse(cr,uid,ids,context=context):
|
|
||||||
if pos_id.pos_categ_id:
|
|
||||||
category_id = pos_id.pos_categ_id.id
|
|
||||||
return {'value': {'pos_categ_id': category_id}}
|
|
||||||
|
|
||||||
_defaults = {
|
_defaults = {
|
||||||
'to_weight' : False,
|
'to_weight' : False,
|
||||||
|
|
|
@ -614,7 +614,7 @@
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<group name="sale" position="inside">
|
<group name="sale" position="inside">
|
||||||
<group name="pos" string="Point of Sale">
|
<group name="pos" string="Point of Sale">
|
||||||
<field name="available_in_pos" on_change="onchange_available_pos(available_in_pos, context)"/>
|
<field name="available_in_pos"/>
|
||||||
<field name="pos_categ_id"/>
|
<field name="pos_categ_id"/>
|
||||||
<field name="to_weight" />
|
<field name="to_weight" />
|
||||||
<field name="income_pdt"/>
|
<field name="income_pdt"/>
|
||||||
|
|
Loading…
Reference in New Issue