mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
17 lines
428 B
Python
17 lines
428 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 odoo import SUPERUSER_ID
|
|
from odoo.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()
|