mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
11 lines
260 B
Python
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)))
|