Remove custom PYSON.Id as it is now in base

This commit is contained in:
Cédric Krier committed 2012-09-13 12:41:15 +02:00
1 parent 66e2fb8e36
commit dd47fdb746
1 file changed
+1 -16
+1 -16
View File
@@ -4,26 +4,11 @@ import copy
from decimal import Decimal
from trytond.model import Model, ModelSQL, ModelView, fields
from trytond.pyson import Eval, Bool, PYSON
from trytond.pyson import Eval, Bool, Id
from trytond.pool import Pool
from trytond.transaction import Transaction
class Id(PYSON):
def __init__(self, module, fs_id):
super(Id, self).__init__()
self._module = module
self._fs_id = fs_id
def pyson(self):
model_data_obj = Pool().get('ir.model.data')
return model_data_obj.get_id(self._module, self._fs_id)
def types(self):
return set([int])
class Carrier(Model):
_name = 'carrier'