Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2666 Näkymät

Hi all. I am currently setting up shipping rules on  Odoo  14  ce.

We are basing our shipping rules on volume- as we well quite light bulky items. When a customer orders more volume than we have a rule set for, we get the message: “No price rule matching this order; delivery cost cannot be computed.” 

The functionality of this is exactly what we want, and it works well. We can then look at sales - and add the price for shipping manually.

However, we would like to change what the message says. I tried ( optimistically) to just change it in the website editor- but it changes back when saved. 

Hi Have  been  hunting  though  the  database  fields,  and  the  website sales  views  etc..  but  cant  find  anything, 

Can anyone point me in the right direction as to where to change this please?

Many thanks.

Avatar
Hylkää
Tekijä

Thank you for your reply,That worked perfectly. 


Paras vastaus

Hi,
This message is raised as a user error inside the function '_get_price_from_picking' in the model 'delivery.carrier'.

You can find this in addons/delivery/models/delivery_grid.py python file under the class 'ProviderGrid'.

To change the message you can super the function and change the user error message as per your need.

Regards.

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
6
helmik. 24
7656
1
huhtik. 22
3043
0
maalisk. 22
4
1
maalisk. 18
4083
1
tammik. 25
2259