Thanks for your help All of of you, Can someone tell me how to not top 
post. I read the instructions but have a brain fry.

:D

Il giorno giovedì 25 settembre 2014 15:22:03 UTC+2, Mark Hayden ha scritto:
>
>
> On 25 Sep 2014 06:44, "Oscar Tark" <[email protected] <javascript:>> 
> wrote:
> >
> > Ahhh so must I add this to the carriers.py file? from B2BC?
> >
> > :D
>
> The better option might be to add your own carriers.py file to the 
> prestashop module that merely extends the unmodifed carrier file in the 
> B2BC module.
>
> I always prefer to leave modules i am not authoring alone so things are 
> more maintainable.
>
> > 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 
> >>
>  

Reply via email to