Can not use reference fields in proteus
Could be a wrong use of the proteus API. When I try to fill a reference field
the same way as in XML, I get an error. I use the value: 'ir.model.field,1'.
Bug or feature?
Scenario
--------
from proteus import config, Model, Wizard
config = config.set_trytond(':memory:', database_type='sqlite')
Property = Model.get('ir.property')
Model_ = Model.get('ir.model')
Field = Model.get('ir.model.field')
field = Field.find([('name', '=', 'name'), ('model', '=', 'Model')])
property = Property()
property
property.name = 'default_model_property'
property.field = field[0]
property.value = 'ir.model.field,1'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/uspallek/fab_venv/projects/vth/proteus/proteus/__init__.py", line
142, in __set__
assert value.startswith(',')
AssertionError