Files
manufacture/mrp_bom_version/__init__.py
2024-10-18 11:24:53 +02:00

14 lines
359 B
Python

# (c) 2015 Oihane Crucelaegui - AvanzOSC
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
from . import models
def set_active_bom_active_state(cr, registry):
"""Set those active BoMs to state 'active'"""
cr.execute(
"""UPDATE mrp_bom
SET state = 'active'
WHERE active = True"""
)