Odoo定制运输模块

我想为Odoo开发一个自定义的运输模块,但是我找不到它的文档,并且所有运输来源都是Enterprise,所以我不付款就看不到它。

Odoo定制运输模块

我在这里找到了Odoo开发人员的向导:https://www.odoo.com/documentation/13.0/

我发现了如何创建模块:https://www.odoo.com/documentation/13.0/howtos/backend.html

我找到了付款处理者指南:https://www.odoo.com/documentation/user/13.0/ecommerce/shopper_experience/payment.html

哪里有运输连接器的文档? 我知道可以做到的,在odoo市场上有第三方运输连接器。

speedstar119 回答:Odoo定制运输模块

从Odoo delivery模块中:

In order to add your own external provider,follow these steps:

1. Create your model MyProvider that _inherit 'delivery.carrier'
2. Extend the selection of the field "delivery_type" with a pair
   ('<my_provider>','My Provider')
3. Add your methods:
   <my_provider>_rate_shipment
   <my_provider>_send_shipping
   <my_provider>_get_tracking_link
   <my_provider>_cancel_shipment
   _<my_provider>_get_default_custom_package_code
   (they are documented hereunder)

要实现自己的运输连接器,建议您开始研究此模块。它来自社区,因此已可供所有社区用户使用。

本文链接:https://www.f2er.com/2882105.html

大家都在问