[ADD] Starshipit as a delivery provider
Starshipit is the leading provider of integrated and automated fulfilment solutions for online businesses integrating with the main carriers used in Australia and New Zealand, such as Australia Post, DHL, Aramex, CouriersPlease and more This PR will add support to integrate with starshipit directly in Odoo, providing rates and shipping for users who need it. Task ID # 3041982 closes odoo/odoo#135839 Related: odoo/enterprise#47569 Related: odoo/documentation#7798 Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
This commit is contained in:
@@ -10,7 +10,15 @@ class StockReturnPicking(models.TransientModel):
|
||||
# Prevent copy of the carrier and carrier price when generating return picking
|
||||
# (we have no integration of returns for now)
|
||||
new_picking, pick_type_id = super()._create_returns()
|
||||
picking = self.env['stock.picking'].browse(new_picking)
|
||||
picking.write({'carrier_id': False,
|
||||
'carrier_price': 0.0})
|
||||
self._reset_carrier_id(new_picking)
|
||||
return new_picking, pick_type_id
|
||||
|
||||
def _reset_carrier_id(self, new_picking):
|
||||
""" Prevent copy of the carrier and carrier price when generating return picking
|
||||
(we have no integration of returns for now).
|
||||
"""
|
||||
picking = self.env['stock.picking'].browse(new_picking)
|
||||
picking.write({
|
||||
'carrier_id': False,
|
||||
'carrier_price': 0.0,
|
||||
})
|
||||
|
||||
@@ -5032,6 +5032,19 @@ msgid ""
|
||||
"=============================\n"
|
||||
msgstr ""
|
||||
|
||||
#. module: base
|
||||
#: model:ir.module.module,description:base.module_delivery_starshipit
|
||||
msgid ""
|
||||
"\n"
|
||||
"Send your shippings through Starshipit and track them online\n"
|
||||
"=======================================================\n"
|
||||
"\n"
|
||||
"Starshipit is the leading provider of integrated shipping and tracking solutions for growing e-commerce businesses.\n"
|
||||
"Seamlessly integrating with a large range of couriers and platforms,\n"
|
||||
"you can streamline every step of your fulfilment process,\n"
|
||||
"reduce handling time and improve customer experience.\n"
|
||||
msgstr ""
|
||||
|
||||
#. module: base
|
||||
#: model:ir.module.module,description:base.module_delivery_bpost
|
||||
msgid ""
|
||||
@@ -27410,6 +27423,11 @@ msgstr ""
|
||||
msgid "Standard Audit File for Tax Base module"
|
||||
msgstr ""
|
||||
|
||||
#. module: base
|
||||
#: model:ir.module.module,shortdesc:base.module_delivery_starshipit
|
||||
msgid "Starshipit Shipping"
|
||||
msgstr ""
|
||||
|
||||
#. module: base
|
||||
#: model_terms:ir.ui.view,arch_db:base.view_base_module_upgrade_install
|
||||
msgid "Start configuration"
|
||||
|
||||
Reference in New Issue
Block a user