Ahhh so must I add this to the carriers.py file? from B2BC?
:D
Il giorno giovedì 25 settembre 2014 13:27:17 UTC+2, Sergi Almacellas
Abellana ha scritto:
>
> El 25/09/14 a les 12:54, Oscar Tark ha escrit:
> > Hello!,
> >
> > I've managed to make the prestashop module work with Tryton 3.0.0,
> > unfortunately one of it's dependencies the module:'Carrier' is
> > creating a problem. This is due to the B2BC module for determining
> > price types (Wholesale or not Wholesale) I get the following error but
> > don't know what to really do:
> >
> > Traceback (most recent call last):
> > File "/trytond/protocols/jsonrpc.py", line 123, in _marshaled_dispatch
> > response['result'] = dispatch_method(method, params)
> > File "/trytond/protocols/jsonrpc.py", line 156, in _dispatch
> > res = dispatch(*args)
> > File "/trytond/protocols/dispatcher.py", line 169, in dispatch
> > result = rpc.result(meth(*c_args, **c_kwargs))
> > File "/trytond/model/model.py", line 150, in default_get
> > value = cls._default_on_change(value)
> > File "/trytond/model/model.py", line 172, in _default_on_change
> > val.update(getattr(inst, 'on_change_' + field)())
> > File "/trytond/modules/sale_shipment_cost/sale.py", line 74, in
> > on_change_carrier
> > return self.on_change_lines()
> > File "/trytond/modules/sale_b2bc/sale.py", line 146, in
> on_change_lines
> > if self.price_type == 't_exc':
> > File "/trytond/model/modelstorage.py", line 1194, in __getattr__
> > return super(ModelStorage, self).__getattr__(name)
> > File "/trytond/model/model.py", line 384, in __getattr__
> > % (self.__name__, name, self._values))
> > AttributeError: 'sale.sale' Model has no attribute 'price_type':
> > {'currency': None, 'shipment_cost_method': u'order', 'lines': [],
> > 'sale_date': None, 'carrier': None, 'party': None}
> >
> >
> You miss the 'price_type' in the lines on_change.
>
>
>
> --
> Sergi Almacellas Abellana
> www.koolpi.com
> Twitter: @pokoli_srk
>
>