mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
Merge branch '8.0' of github.com:odoomrp/odoomrp-wip into 8.0 [FIX] quality_control_stock: * File missing * Triggers for product category
17 lines
620 B
Python
17 lines
620 B
Python
# -*- coding: utf-8 -*-
|
|
##############################################################################
|
|
# For copyright and license notices, see __openerp__.py file in root directory
|
|
##############################################################################
|
|
|
|
from . import models
|
|
from openerp import SUPERUSER_ID
|
|
|
|
|
|
def post_init_hook(cr, registry):
|
|
# Create QC triggers
|
|
picking_type_ids = registry['stock.picking.type'].search(
|
|
cr, SUPERUSER_ID, [])
|
|
for picking_type_id in picking_type_ids:
|
|
registry['stock.picking.type']._create_qc_trigger(
|
|
cr, SUPERUSER_ID, picking_type_id)
|