stock_delivery/wizard/choose_delivery_carrier.py

14 lines
475 B
Python
Raw Normal View History

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import _, api, models
class ChooseDeliveryCarrier(models.TransientModel):
_inherit = 'choose.delivery.carrier'
@api.depends('carrier_id')
def _compute_invoicing_message(self):
super()._compute_invoicing_message()
if self.carrier_id.invoice_policy == 'real':
self.invoicing_message = _('The shipping price will be set once the delivery is done.')