mirror of
https://github.com/bringout/oca-mrp.git
synced 2026-04-21 05:12:07 +02:00
13 lines
359 B
Python
13 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"""
|
|
)
|