Error on opening carrier form view
When the module account_stock_eu and the module carrier are activated but not the incoterm module then the following error occurs:
Traceback (most recent call last):
File "/home/timitos/projects/upstream/tryton/trytond/trytond/protocols/wrappers.py", line 178, in wrapper
return func(request, pool, *args, **kwargs)
File "/home/timitos/projects/upstream/tryton/trytond/trytond/protocols/dispatcher.py", line 204, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/home/timitos/projects/upstream/tryton/trytond/trytond/model/modelview.py", line 292, in fields_view_get
result['arch'], result['fields'] = cls.parse_view(
File "/home/timitos/projects/upstream/tryton/trytond/trytond/model/modelview.py", line 453, in parse_view
fields_def = cls.__parse_fields(
File "/home/timitos/projects/upstream/tryton/trytond/trytond/model/modelview.py", line 661, in __parse_fields
fields_attrs = cls.__parse_fields(
File "/home/timitos/projects/upstream/tryton/trytond/trytond/model/modelview.py", line 567, in __parse_fields
field = cls._fields[fname]
KeyError: 'intrastat_transport'
The reason is that the field intrastat_transport is added to the carrier only if both modules carrier and incoterm are activated. But the view does only have the carrier module defined as depends.