Files
rma/crm_rma_location/__init__.py
2016-05-09 11:07:56 +02:00

17 lines
434 B
Python

# -*- coding: utf-8 -*-
# © 2015 Yanina Aular, Vauxoo
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models
from openerp import SUPERUSER_ID
from openerp.api import Environment
def post_init_hook(cr, registry):
env = Environment(cr, SUPERUSER_ID, {})
warehouses = env['stock.warehouse'].search([])
warehouses.create_locations_rma()
warehouses.create_sequences_picking_types()