Skip to content
Health
55/100
fair
  • Security25/25
    No findings
  • Activity0/25
    Last human commit 51 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 4 Odoo series since 7.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.12 MB
Module directory on disk
Code analysis 12 migration notes 7 models 6 views 0 HTTP endpoints

Description

Makes it better to deal with purchases with known sale schemes, specially the following case:

  1. normal
  2. direct delivery (also called drop shipping)
  3. direct invoice
  4. direct delivery and direct invoice See the attached diagram in images/purchase_to_sale.png to see the difference between those flows.

In all those specific MTO (by opposition of MTS) cases, it will link the sale order line and the purchase order lines together.

A good idea might be to use this module with the mrp_jit module if you want MTO flows to be automatically dealt with right at the sale order validation.

You can also tell if product suppliers accept drop shipping or not. If they accept it and if sale order line has more products than the virtual quantity available, then it selects drop shipping by default.

In the out going product list view, you can filter in or out drop shipping picking.

TODO: eventually it might be interesting to do a chained move from supplier to internal location and from internal location to customer instead of supplier o customer directly. This would enable moves to properly generate accounting moves in the stock journal for better tracking.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 6

XML IDNameModelTypeStatus
ir_ui_view_purchase_to_sale ir_ui_view_purchase_to_sale purchase.order form Inherits purchase.purchase_order_form
ir_ui_view_purchase_to_sale_purchase ir_ui_view_purchase_to_sale_purchase purchase.order search Inherits purchase.view_purchase_order_filter
ir_ui_view_purchase_to_sale_stock ir_ui_view_purchase_to_sale_stock stock.picking search Inherits stock.view_picking_out_search
product_supplierinfo_form_view_partner_direct_delivery_form product.supplierinfo.form.direct_delivery.inherit product.supplierinfo form Inherits product.product_supplierinfo_form_view
product_supplierinfo_tree_view_partner_direct_delivery_tree product.supplierinfo.tree.direct_delivery.inherit product.supplierinfo tree Inherits product.product_supplierinfo_tree_view
view_order_form_sale_flow view_order_form_sale_flow sale.order form Inherits sale.view_order_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 7

New fields (0)

No new fields.

Public methods (1)
  • create_procurement_purchase_order(self, cr, uid, procurement, po_vals, line_vals, context=None)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (2)
  • action_picking_create(self, cr, uid, ids, context=None)
  • sale_flow_change(self, cr, uid, ids, sale_flow, sale_id, warehouse_id, context=None)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • action_button_confirm(self, cr, uid, ids, context=None)

New fields (0)

No new fields.

Public methods (2)
  • onchange_sale_flow(self, cr, uid, ids, sale_flow, product_id, context=None)
    Change type to make_to_order when sale_flow is direct_delivery
  • product_id_change(self, cr, uid, ids, pricelist, product, qty=0, uom=False, qty_uos=0, uos=False, name='', partner_id=False, lang=False, update_tax=True, date_order=False, packaging=False, fiscal_position=False, flag=False, context=None)

Loading…

Loading…

Loading…