Stock MTS+MTO Rule

stock_mts_mto_rule
REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/18.0/stock_mts_mto_rule
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYWarehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSYann Papouin, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 15:17:23
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - uom
    - barcodes_gs1_nomenclature
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
stock_location_route_form_view_mto_mto stock.route.form.mts.mto stock.route field Inherits stock.stock_location_route_form_view
view_stock_rule_form_view_mto_mto stock.rule.form.mts.mto stock.rule field Inherits stock.view_stock_rule_form
view_warehouse_inherited view_warehouse_inherited stock.warehouse xpath Inherits stock.view_warehouse
Models touched (2)

New fields (3)
  • action Selection
    ondelete={'split_procurement': 'cascade'} selection_add=[('split_procurement', 'Choose between MTS and MTO')]
  • mto_rule_id Many2one → stock.rule
    check_company=True string='MTO Rule' args: 'stock.rule'
  • mts_rule_id Many2one → stock.rule
    check_company=True string='MTS Rule' args: 'stock.rule'
Public methods (1)
  • get_mto_qty_to_order(self, product, product_qty, product_uom, values)

New fields (2)
  • mto_mts_management Boolean
    help='If this new route is selected on product form view, a purchase order will be created only if the virtual stock is less than 0 else, the product will be taken from stocks' args: 'Use MTO+MTS rules'
  • mts_mto_rule_id Many2one → stock.rule
    check_company=True args: 'stock.rule', 'MTO+MTS rule'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_mts_mto_rule
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYWarehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, JasminSForgeFlow, Aleksander Milinkevich
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:59:28
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes_gs1_nomenclature
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
stock_location_route_form_view_mto_mto stock.route.form.mts.mto stock.route field Inherits stock.stock_location_route_form_view
view_stock_rule_form_view_mto_mto stock.rule.form.mts.mto stock.rule field Inherits stock.view_stock_rule_form
view_warehouse_inherited view_warehouse_inherited stock.warehouse xpath Inherits stock.view_warehouse
Models touched (2)

New fields (3)
  • action Selection
    ondelete={'split_procurement': 'cascade'} selection_add=[('split_procurement', 'Choose between MTS and MTO')]
  • mto_rule_id Many2one → stock.rule
    check_company=True string='MTO Rule' args: 'stock.rule'
  • mts_rule_id Many2one → stock.rule
    check_company=True string='MTS Rule' args: 'stock.rule'
Public methods (1)
  • get_mto_qty_to_order(self, product, product_qty, product_uom, values)

New fields (2)
  • mto_mts_management Boolean
    help='If this new route is selected on product form view, a purchase order will be created only if the virtual stock is less than 0 else, the product will be taken from stocks' args: 'Use MTO+MTS rules'
  • mts_mto_rule_id Many2one → stock.rule
    check_company=True args: 'stock.rule', 'MTO+MTS rule'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_mts_mto_rule
VERSION
VERSION 1.0.3
CATEGORY
CATEGORYWarehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSDenis Roussel, Weblate, OCA-git-bot, Maik Steinfeld, oca-ci, Kevin Khao, CristianoMafraJunior
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:44
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes_gs1_nomenclature
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
stock_location_route_form_view_mto_mto stock.route.form.mts.mto stock.route field Inherits stock.stock_location_route_form_view
view_stock_rule_form_view_mto_mto stock.rule.form.mts.mto stock.rule field Inherits stock.view_stock_rule_form
view_warehouse_inherited view_warehouse_inherited stock.warehouse xpath Inherits stock.view_warehouse
Models touched (2)

New fields (3)
  • action Selection
    ondelete={'split_procurement': 'cascade'} selection_add=[('split_procurement', 'Choose between MTS and MTO')]
  • mto_rule_id Many2one → stock.rule
    check_company=True string='MTO Rule' args: 'stock.rule'
  • mts_rule_id Many2one → stock.rule
    check_company=True string='MTS Rule' args: 'stock.rule'
Public methods (1)
  • get_mto_qty_to_order(self, product, product_qty, product_uom, values)

New fields (2)
  • mto_mts_management Boolean
    help='If this new route is selected on product form view, a purchase order will be created only if the virtual stock is less than 0 else, the product will be taken from stocks' args: 'Use MTO+MTS rules'
  • mts_mto_rule_id Many2one → stock.rule
    check_company=True args: 'stock.rule', 'MTO+MTS rule'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/15.0/stock_mts_mto_rule
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYWarehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, Jesús Alan Ramos Rodríguez, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:33
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
stock_location_route_form_view_mto_mto stock.location.route.form.mts.mto stock.location.route field Inherits stock.stock_location_route_form_view
view_stock_rule_form_view_mto_mto stock.rule.form.mts.mto stock.rule field Inherits stock.view_stock_rule_form
view_warehouse_inherited view_warehouse_inherited stock.warehouse xpath Inherits stock.view_warehouse
Models touched (2)

New fields (3)
  • action Selection
    ondelete={'split_procurement': 'cascade'} selection_add=[('split_procurement', 'Choose between MTS and MTO')]
  • mto_rule_id Many2one → stock.rule
    check_company=True string='MTO Rule' args: 'stock.rule'
  • mts_rule_id Many2one → stock.rule
    check_company=True string='MTS Rule' args: 'stock.rule'
Public methods (1)
  • get_mto_qty_to_order(self, product, product_qty, product_uom, values)

New fields (2)
  • mto_mts_management Boolean
    help='If this new route is selected on product form view, a purchase order will be created only if the virtual stock is less than 0 else, the product will be taken from stocks' args: 'Use MTO+MTS rules'
  • mts_mto_rule_id Many2one → stock.rule
    check_company=True args: 'stock.rule', 'MTO+MTS rule'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_mts_mto_rule
VERSION
VERSION 2.0.0
CATEGORY
CATEGORYWarehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSOCA Transbot, Thierry Ducrest, Florian da Costa, oca-travis, Weblate, OCA-git-bot, Pierrick Brun, Michael Tietz, oca-ci, InsanivimusOmnes
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
stock_location_route_form_view_mto_mto stock.location.route.form.mts.mto stock.location.route field Inherits stock.stock_location_route_form_view
view_stock_rule_form_view_mto_mto stock.rule.form.mts.mto stock.rule field Inherits stock.view_stock_rule_form
view_warehouse_inherited view_warehouse_inherited stock.warehouse xpath Inherits stock.view_warehouse
Models touched (2)

New fields (4)
  • action Selection
    ondelete={'split_procurement': 'cascade'} selection_add=[('split_procurement', 'Choose between MTS and MTO')]
  • mto_rule_id Many2one → stock.rule
    check_company=True string='MTO Rule' args: 'stock.rule'
  • mts_quantity_rule Selection
    default='available' help='With `Available` the MTS rule will be used for any available quantity.\nWith`No Split` the MTS rule is only used, if the full requested quantity is available.' selection=[('available', 'Available'), ('full', 'No Split')] string='MTS quantity rule'
  • mts_rule_id Many2one → stock.rule
    check_company=True string='MTS Rule' args: 'stock.rule'
Public methods (1)
  • get_mto_qty_to_order(self, product, product_qty, product_uom, values)

New fields (2)
  • mto_mts_management Boolean
    help='If this new route is selected on product form view, a purchase order will be created only if the virtual stock is less than 0 else, the product will be taken from stocks' args: 'Use MTO+MTS rules'
  • mts_mto_rule_id Many2one → stock.rule
    check_company=True args: 'stock.rule', 'MTO+MTS rule'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_mts_mto_rule
VERSION
VERSION 1.3.0
CATEGORY
CATEGORYWarehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSdavid, OCA Transbot, Pablo Paez, oca-travis, OCA-git-bot, Deivis Laya, Carlos Roca
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:12
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
stock_location_route_form_view_mto_mto stock.location.route.form.mts.mto stock.location.route field Inherits stock.stock_location_route_form_view
view_stock_rule_form_view_mto_mto stock.rule.form.mts.mto stock.rule field Inherits stock.view_stock_rule_form
view_warehouse_inherited view_warehouse_inherited stock.warehouse xpath Inherits stock.view_warehouse
Models touched (2)

New fields (3)
  • action Selection
    selection_add=[('split_procurement', 'Choose between MTS and MTO')]
  • mto_rule_id Many2one → stock.rule
    check_company=True string='MTO Rule' args: 'stock.rule'
  • mts_rule_id Many2one → stock.rule
    check_company=True string='MTS Rule' args: 'stock.rule'
Public methods (1)
  • get_mto_qty_to_order(self, product, product_qty, product_uom, values)

New fields (2)
  • mto_mts_management Boolean
    help='If this new route is selected on product form view, a purchase order will be created only if the virtual stock is less than 0 else, the product will be taken from stocks' args: 'Use MTO+MTS rules'
  • mts_mto_rule_id Many2one → stock.rule
    check_company=True args: 'stock.rule', 'MTO+MTS rule'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_mts_mto_rule
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYWarehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSPedro M. Baeza, Andrii Skrypka, OCA Transbot, oca-travis, Weblate, OCA-git-bot, Carlos Roca, Pascal GOUHIER
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:16
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
stock_location_route_form_view_mto_mto stock.location.route.form.mts.mto stock.location.route field Inherits stock.stock_location_route_form_view
view_stock_rule_form_view_mto_mto stock.rule.form.mts.mto stock.rule field Inherits stock.view_stock_rule_form
view_warehouse_inherited view_warehouse_inherited stock.warehouse xpath Inherits stock.view_warehouse
Models touched (2)

New fields (3)
  • action Selection
    selection_add=[('split_procurement', 'Choose between MTS and MTO')]
  • mto_rule_id Many2one → stock.rule
    string='MTO Rule' args: 'stock.rule'
  • mts_rule_id Many2one → stock.rule
    string='MTS Rule' args: 'stock.rule'
Public methods (1)
  • get_mto_qty_to_order(self, product, product_qty, product_uom, values)
    @api.multi

New fields (2)
  • mto_mts_management Boolean
    help='If this new route is selected on product form view, a purchase order will be created only if the virtual stock is less than 0 else, the product will be taken from stocks' args: 'Use MTO+MTS rules'
  • mts_mto_rule_id Many2one → stock.rule
    args: 'stock.rule', 'MTO+MTS rule'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/11.0/stock_mts_mto_rule
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYWarehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSDenis Roussel, Florian da Costa, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:23:57
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - barcodes
    - web_planner
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_procurement_rule_form_mto_mto procurement.rule.mts.mto procurement.rule field Inherits stock.view_procurement_rule_form
view_warehouse_inherited view_warehouse_inherited stock.warehouse xpath Inherits stock.view_warehouse
Models touched (2)

New fields (3)
  • action Selection
    selection_add=[('split_procurement', 'Choose between MTS and MTO')]
  • mto_rule_id Many2one → procurement.rule
    string='MTO Rule' args: 'procurement.rule'
  • mts_rule_id Many2one → procurement.rule
    string='MTS Rule' args: 'procurement.rule'
Public methods (1)
  • get_mto_qty_to_order(self, product, product_qty, product_uom, values)
    @api.multi

New fields (2)
  • mto_mts_management Boolean
    help='If this new route is selected on product form view, a purchase order will be created only if the virtual stock is less than 0 else, the product will be taken from stocks' args: 'Use MTO+MTS rules'
  • mts_mto_rule_id Many2one → procurement.rule
    args: 'procurement.rule', 'MTO+MTS rule'
Public methods (3)
  • create_routes(self)
    @api.multi
  • get_all_routes_for_wh(self)
    @api.model
  • write(self, vals)
    @api.multi
REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/10.0/stock_mts_mto_rule
VERSION
VERSION 1.0.4
CATEGORY
CATEGORYWarehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSPedro M. Baeza, GitHub, Denis Roussel, OCA Transbot, Sébastien BEAU, Florian da Costa, Moises Lopez - https://www.vauxoo.com/, oca-travis, OCA-git-bot, Sylvain GARANCHER, Oscar Ulises Garza Cordova
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:55
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - web_tour
    - report
    - procurement
    - barcodes
    - web_planner
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_procurement_rule_form_mto_mto procurement.rule.mts.mto procurement.rule field Inherits procurement.view_procurement_rule_form
view_warehouse_inherited view_warehouse_inherited stock.warehouse xpath Inherits stock.view_warehouse
Models touched (3)

New fields (2)
  • mts_mto_procurement_id Many2one → procurement.order
    copy=False index=True string='Mto+Mts Procurement' args: 'procurement.order'
  • mts_mto_procurement_ids One2many → procurement.order
    string='Procurements' args: 'procurement.order', 'mts_mto_procurement_id'
Public methods (2)
  • check(self, autocommit=False)
    @api.multi
  • get_mto_qty_to_order(self)
    @api.multi

New fields (2)
  • mto_rule_id Many2one → procurement.rule
    string='MTO Rule' args: 'procurement.rule'
  • mts_rule_id Many2one → procurement.rule
    string='MTS Rule' args: 'procurement.rule'
Public methods (0)

No public methods.

New fields (2)
  • mto_mts_management Boolean
    help='If this new route is selected on product form view, a purchase order will be created only if the virtual stock is less than 0 else, the product will be taken from stocks' args: 'Use MTO+MTS rules'
  • mts_mto_rule_id Many2one → procurement.rule
    args: 'procurement.rule', 'MTO+MTS rule'
Public methods (3)
  • create(self, vals)
    @api.model
  • get_all_routes_for_wh(self)
    @api.model
  • write(self, vals)
    @api.multi
REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/9.0/stock_mts_mto_rule
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYWarehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSAlexandre Fayolle, Pedro M. Baeza, Stéphane Bidoul (ACSONE), OCA Transbot, David Beal, oca-travis, OCA-git-bot, Sylvain GARANCHER, otherjustin
WEBSITE
WEBSITEhttp://www.akretion.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:20
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - report
    - procurement
    - barcodes
    - web_planner
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_procurement_rule_form_mto_mto procurement.rule.mts.mto procurement.rule field Inherits procurement.view_procurement_rule_form
view_warehouse_inherited view_warehouse_inherited stock.warehouse xpath Inherits stock.view_warehouse
Models touched (3)

New fields (2)
  • mts_mto_procurement_id Many2one → procurement.order
    copy=False index=True string='Mto+Mts Procurement' args: 'procurement.order'
  • mts_mto_procurement_ids One2many → procurement.order
    string='Procurements' args: 'procurement.order', 'mts_mto_procurement_id'
Public methods (2)
  • check(self, autocommit=False)
    @api.multi
  • get_mto_qty_to_order(self)
    @api.multi

New fields (2)
  • mto_rule_id Many2one → procurement.rule
    string='MTO Rule' args: 'procurement.rule'
  • mts_rule_id Many2one → procurement.rule
    string='MTS Rule' args: 'procurement.rule'
Public methods (0)

No public methods.

New fields (2)
  • mto_mts_management Boolean
    help='If this new route is selected on product form view, a purchase order will be created only if the virtual stock is less than 0 else, the product will be taken from stocks' args: 'Use MTO+MTS rules'
  • mts_mto_rule_id Many2one → procurement.rule
    args: 'procurement.rule', 'MTO+MTS rule'
Public methods (4)
  • change_route(self, warehouse, new_reception_step=False, new_delivery_step=False)
    @api.multi
  • create_routes(self, warehouse)
    @api.multi
  • get_all_routes_for_wh(self, warehouse)
    @api.model
  • write(self, vals)
    @api.multi
REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/8.0/stock_mts_mto_rule
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYWarehouse
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSStéphane Bidoul, Alexandre Fayolle, Lionel Sausin, Pedro M. Baeza, Stéphane Bidoul (ACSONE), OCA Transbot, Sébastien BEAU, Florian da Costa, Gabriel Davini, oca-travis, OCA-git-bot, JulioSerna, Levent Karakas
WEBSITE
WEBSITEhttp://www.akretion.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:21
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - report
    - procurement
    - board
    - web_kanban_gauge
    - web_kanban_sparkline
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_procurement_rule_form_mto_mto procurement.rule.mts.mto procurement.rule field Inherits procurement.view_procurement_rule_form
view_warehouse_inherited view_warehouse_inherited stock.warehouse xpath Inherits stock.view_warehouse
Models touched (3)

New fields (2)
  • mts_mto_procurement_id Many2one → procurement.order
    copy=False index=True string='Mto+Mts Procurement' args: 'procurement.order'
  • mts_mto_procurement_ids One2many → procurement.order
    string='Procurements' args: 'procurement.order', 'mts_mto_procurement_id'
Public methods (2)
  • check(self, autocommit=False)
    @api.multi
  • get_mto_qty_to_order(self)
    @api.multi

New fields (2)
  • mto_rule_id Many2one → procurement.rule
    string='MTO Rule' args: 'procurement.rule'
  • mts_rule_id Many2one → procurement.rule
    string='MTS Rule' args: 'procurement.rule'
Public methods (0)

No public methods.

New fields (2)
  • mto_mts_management Boolean
    help='If this new route is selected on product form view, a purchase order will be created only if the virtual stock is less than 0 else, the product will be taken from stocks' args: 'Use MTO+MTS rules'
  • mts_mto_rule_id Many2one → procurement.rule
    args: 'procurement.rule', 'MTO+MTS rule'
Public methods (4)
  • change_route(self, warehouse, new_reception_step=False, new_delivery_step=False)
    @api.multi
  • create_routes(self, warehouse)
    @api.multi
  • get_all_routes_for_wh(self, warehouse)
    @api.model
  • write(self, vals)
    @api.multi