Al intentar fer una modificació contractual des de la modal de Generar Casos Gestió ATR, pel contracte 00001, obtinc un error al fer el default_get, que no veig perquè pot passar:
{"exception":"Wrong ID for the browse record, got False, expected an integer.","traceback":"Traceback (most recent call last):\n File \"/home/erp/src/erp/server/bin/netsvc.py\", line 361, in dispatch\n result = LocalService(service_name)(method, *params)\n File \"/home/erp/src/erp/server/bin/netsvc.py\", line 100, in __call__\n res = getattr(self, method)(*params)\n File \"/home/erp/src/erp/server/bin/service/web_services.py\", line 614, in execute\n res = service.execute(db, uid, object, method, *args)\n File \"/home/erp/src/erp/server/bin/osv/osv.py\", line 61, in wrapper\n return f(self, dbname, *args, **kwargs)\n File \"/home/erp/src/erp/server/bin/osv/osv.py\", line 132, in execute\n res = pool.execute_cr(cr, uid, obj, method, *args, **kw)\n File \"/home/erp/src/erp/server/bin/osv/osv.py\", line 123, in execute_cr\n return getattr(object, method)(cr, uid, *args, **kw)\n File \"/home/erp/src/erp/server/bin/addons/giscedata_switching/wizard/giscedata_switching_mod_con_wizard.py\", line 942, in default_get\n cursor, uid, fields, context=context\n File \"/home/erp/src/erp/server/bin/osv/orm.py\", line 1876, in default_get\n value[f] = self._defaults[f](self, cr, uid, context)\n File \"/home/erp/src/erp/server/bin/addons/giscedata_switching/wizard/giscedata_switching_mod_con_wizard.py\", line 1099, in _get_default_retail_tariff\n contract = pol_obj.browse(cursor, uid, pol_id, context=context)\n File \"/home/erp/src/erp/server/bin/addons/giscedata_polissa/giscedata_polissa.py\", line 530, in browse\n res = super(GiscedataPolissa, self).browse(cursor, uid, ids, context)\n File \"/home/erp/src/erp/server/bin/osv/orm.py\", line 583, in browse\n return browse_record(cr, uid, select, self, cache, context=context, list_class=self._list_class, fields_process=fields_process)\n File \"/home/erp/src/erp/server/bin/osv/orm.py\", line 198, in __init__\n raise BrowseRecordError(_('Wrong ID for the browse record, got %r, expected an integer.') % (id,))\nBrowseRecordError: Wrong ID for the browse record, got False, expected an integer.\n"}
Al intentar fer una modificació contractual des de la modal de
Generar Casos Gestió ATR
, pel contracte00001
, obtinc un error al fer eldefault_get
, que no veig perquè pot passar:Em retorna l'error: