Repository
OCA/product-attribute · module folder · Try on Runboat
Module version
1.0.1
Category
Inventory
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/product-attribute
Last tracking update
2026-08-07 08:42:54
Authors
Odoo Community Association (OCA), Camptocamp SA
Maintainers
Odoo Community Association (OCA), Camptocamp SA
Committers
Jacques-Etienne Baudoux, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
OCA/product-attribute:
OCA/stock-logistics-warehouse:
odoo/odoo:
- web
- bus
- uom
Python dependencies
None
System dependencies
None
Required by
None
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 form Inherits product.product_variant_easy_edit_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

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
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
321 days ago
Last activity
62 days ago
Repository
OCA/product-attribute
Pull request
[17.0] [MIG] product_variant_route_mto: Migration to 17.0 (#2097)