odoo-shopinvader icon indicating copy to clipboard operation
odoo-shopinvader copied to clipboard

[13.0][FIX] Delivery carrier service simulate price

Open qgroulard opened this issue 3 years ago • 0 comments

Simulate delivery price for other country than partner's one always returned 0.0. Indeed, if the partner's country doesn't match the carrier's countries (same for zip) the returned price is 0.0. Thus, for simulation purpose, country (or zip) must be forced on the partner while evaluating carrier's rate shipment.

A test was already covering this case (passing different zip in parameters than partner's one) but the expected price was wrong. The demo 'poste' carrier charges 20.0 not 0.0.

qgroulard avatar Jun 01 '21 14:06 qgroulard