Exemple #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()
Exemple #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()
Exemple #3
0
def post_init_hook(cr, registry):
    hooks.post_init_hook(
        cr,
        'mint_client_multi_store.product_catelog_multi_store_rule',
        'product.catelog',
    )
Exemple #4
0
def post_init_hook(cr, registry):
    hooks.post_init_hook(
        cr,
        'base.res_partner_rule',
        'res.partner',
    )
Exemple #5
0
def post_init_hook(cr, registry):
    hooks.post_init_hook(
        cr, "product.product_comp_rule", "product.template",
    )
Exemple #6
0
def post_init_hook(cr, registry):
    hooks.post_init_hook(
        cr,
        'product.product_comp_rule',
        'product.template',
    )
Exemple #7
0
def post_init_hook(cr, registry):
    hooks.post_init_hook(
        cr, "base.res_partner_rule", "res.partner",
    )