Files
suite/delivery_hibou/models/sale.py
Jared Kipe 18ff830ed7 [IMP] delivery_hibou: new api for getting multiple services rated at the same time, sample FedEx implementation
This API will be used by the `sale_planner` and a new `stock_delivery_planner` modules.
2021-04-05 11:44:06 -07:00

11 lines
260 B
Python

from odoo import api, models
from odoo.exceptions import UserError
class SaleOrder(models.Model):
_inherit = 'sale.order'
@api.multi
def button_test_rate_multi(self):
raise UserError(str(self.carrier_id.rate_shipment_multi(order=self)))