Product Variant Route MTO

product_variant_route_mto
REPOSITORY
REPOSITORYOCA/product-attribute
GIT
GIThttps://github.com/OCA/product-attribute.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/product-attribute/tree/18.0/product_variant_route_mto
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYInventory
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp SA
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp SA
COMMITTERS
COMMITTERSJacques-Etienne Baudoux, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/product-attribute
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:13
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/product-attribute:
    - product_route_mto
OCA/stock-logistics-warehouse:
    - stock_route_mto
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
This module allows to set a product variant as MTO (enabling the Make To
Order route on that variant only) while the related product is not MTO.
However, you cannot mark a variant has non MTO when the template is MTO.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
product_variant_easy_edit_view product.product.form.easy.inherit product.product group Inherits product.product_variant_easy_edit_view
Models touched (2)

New fields (2)
  • is_mto Boolean
    compute='_compute_is_mto' help=IS_MTO_HELP readonly=False store=True string='Variant is MTO'
  • route_ids Many2many → stock.route
    compute='_compute_route_ids' domain="[('product_selectable', '=', True)]" inverse='_inverse_route_ids' search='_search_route_ids' store=False args: 'stock.route'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (2)
  • onchange_route_ids(self)
    @api.onchange('route_ids')
  • write(self, values)
STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/product-attribute
PULL REQUEST
PULL REQUEST[17.0] [MIG] product_variant_route_mto: Migration to 17.0 (#2097)