wefra-odoo11/custom/__private/install/update-v1.1.0.sql
2019-10-02 23:28:58 +02:00

23 lines
1.3 KiB
SQL

-- core_feature: register
INSERT INTO core_feature_translation (code, source, en_gb) VALUES('menu_register_url', 'register', 'register');
INSERT INTO core_feature_translation (code, source, en_gb) VALUES('menu_register_label', 'Register', 'Register');
INSERT INTO core_feature(model, code, url_feature_translation_id, label_feature_translation_id,
is_menu_display, is_available_for_guest, is_active, priority
) VALUES('register', 'register',
(SELECT id FROM core_feature_translation WHERE code='menu_register_url' LIMIT 1),
(SELECT id FROM core_feature_translation WHERE code='menu_register_label' LIMIT 1),
TRUE, TRUE, TRUE, 100
);
-- core_feature: terms-of-use
INSERT INTO core_feature_translation (code, source, en_gb) VALUES('menu_termsOfUse_url', 'terms-of-use', 'terms-of-use');
INSERT INTO core_feature_translation (code, source, en_gb) VALUES('menu_termsOfUse_label', 'Terms Of Use', 'Terms Of Use');
INSERT INTO core_feature(model, code, url_feature_translation_id, label_feature_translation_id,
is_menu_display, is_available_for_guest, is_active, priority
) VALUES('terms-of-use', 'terms-of-use',
(SELECT id FROM core_feature_translation WHERE code='menu_termsOfUse_url' LIMIT 1),
(SELECT id FROM core_feature_translation WHERE code='menu_termsOfUse_label' LIMIT 1),
FALSE, TRUE, TRUE, 200
);