[FIX] Base : Added active field in address view in order to let the user deactivate the address
lp bug: https://launchpad.net/bugs/795018 fixed bzr revid: ira@tinyerp.com-20110621053700-p9syely27nm0sqbh
This commit is contained in:
parent
7494cfa301
commit
f7dbab8db7
|
@ -222,7 +222,7 @@ class res_partner(osv.osv):
|
|||
return True
|
||||
|
||||
def address_get(self, cr, uid, ids, adr_pref=['default']):
|
||||
cr.execute('select type,id from res_partner_address where partner_id IN %s',(tuple(ids),))
|
||||
cr.execute('select type,id from res_partner_address where partner_id IN %s and active',(tuple(ids),))
|
||||
res = cr.fetchall()
|
||||
adr = dict(res)
|
||||
# get the id of the (first) default address if there is one,
|
||||
|
|
|
@ -99,6 +99,7 @@
|
|||
<field name="fax"/>
|
||||
<field name="mobile"/>
|
||||
<field name="email" widget="email"/>
|
||||
<field name="active"/>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
|
|
Loading…
Reference in New Issue