Beispiel #1
0
def post_init_hook(cr, registry):
    hooks.post_init_hook(
        cr,
        'product.product_comp_rule',
        'product.template',
    )
    env = api.Environment(cr, SUPERUSER_ID, {})
    env['product.template'].sudo().search([])._compute_visible_for_all_companies()
Beispiel #2
0
def post_init_hook(cr, registry):
    hooks.post_init_hook(
        cr,
        'base.res_partner_rule',
        'res.partner',
    )
    env = api.Environment(cr, SUPERUSER_ID, {})
    env['res.partner'].sudo().search([])._compute_visible_for_all_companies()
Beispiel #3
0
def post_init_hook(cr, registry):
    hooks.post_init_hook(
        cr,
        'mint_client_multi_store.product_catelog_multi_store_rule',
        'product.catelog',
    )
Beispiel #4
0
def post_init_hook(cr, registry):
    hooks.post_init_hook(
        cr,
        'base.res_partner_rule',
        'res.partner',
    )
Beispiel #5
0
def post_init_hook(cr, registry):
    hooks.post_init_hook(
        cr, "product.product_comp_rule", "product.template",
    )
Beispiel #6
0
def post_init_hook(cr, registry):
    hooks.post_init_hook(
        cr,
        'product.product_comp_rule',
        'product.template',
    )
Beispiel #7
0
def post_init_hook(cr, registry):
    hooks.post_init_hook(
        cr, "base.res_partner_rule", "res.partner",
    )