【问题标题】:Odoo Custom Shipping ModuleOdoo 自定义运输模块
【发布时间】:2023-03-19 23:06:02
【问题描述】:

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

我在这里找到了 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 市场上有第三方运输连接器。

【问题讨论】:

    标签: api odoo shipping


    【解决方案1】:

    来自 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)
    

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

    【讨论】:

      猜你喜欢
      • 2013-10-18
      • 1970-01-01
      • 2013-05-07
      • 2020-08-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多