forked from Yaltik/golem
[MIG][IMP]GOLEM Base migration to v10, and better guidelines
This commit is contained in:
parent
e87e69f951
commit
8efabe7ec8
@ -23,14 +23,15 @@
|
||||
'author': 'Fabien Bourgeois',
|
||||
'license': 'AGPL-3',
|
||||
'application': False,
|
||||
'installable': False,
|
||||
'installable': True,
|
||||
'depends': ['membership', 'contacts', 'mail', 'account_voucher',
|
||||
'partner_firstname', 'partner_contact_birthdate',
|
||||
'partner_contact_gender', 'partner_contact_nationality',
|
||||
'partner_contact_gender',
|
||||
'l10n_fr', 'l10n_fr_state', 'l10n_fr_department',
|
||||
'l10n_fr_tax_sale_ttc', 'l10n_fr_siret',
|
||||
'l10n_fr_siret',
|
||||
'web_widget_phone_check_fr', 'web_widget_email_check',
|
||||
'web_widget_url_check', 'web_one2many_kanban',
|
||||
'yaltik_backend_theme'],
|
||||
'data': ['security/golem_security.xml']
|
||||
'web_widget_url_check',
|
||||
# 'web_one2many_kanban',
|
||||
'web_responsive'],
|
||||
'data': ['security/golem_security.xml', 'views/menus.xml']
|
||||
}
|
||||
|
@ -4,10 +4,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 8.0\n"
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-07-21 13:17+0000\n"
|
||||
"PO-Revision-Date: 2016-07-21 13:17+0000\n"
|
||||
"POT-Creation-Date: 2017-05-01 14:19+0000\n"
|
||||
"PO-Revision-Date: 2017-05-01 14:19+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@ -26,3 +26,8 @@ msgstr "Administrateur"
|
||||
msgid "GOLEM user"
|
||||
msgstr "Utilisateur"
|
||||
|
||||
#. module: golem_base
|
||||
#: model:ir.ui.menu,name:golem_base.membership_products_menu
|
||||
msgid "Membership Products"
|
||||
msgstr "Types d'adhésions"
|
||||
|
||||
|
@ -4,10 +4,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 8.0\n"
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-07-21 13:17+0000\n"
|
||||
"PO-Revision-Date: 2016-07-21 13:17+0000\n"
|
||||
"POT-Creation-Date: 2017-05-01 14:19+0000\n"
|
||||
"PO-Revision-Date: 2017-05-01 14:19+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@ -25,3 +25,8 @@ msgstr ""
|
||||
msgid "GOLEM user"
|
||||
msgstr ""
|
||||
|
||||
#. module: golem_base
|
||||
#: model:ir.ui.menu,name:golem_base.membership_products_menu
|
||||
msgid "Membership Products"
|
||||
msgstr ""
|
||||
|
||||
|
@ -34,20 +34,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<field name="implied_ids" eval="[(4, ref('group_golem_user'))]"/>
|
||||
<field name="users" eval="[(4, ref('base.user_root'))]"/>
|
||||
</record>
|
||||
<!-- Hide Default Articles Menu for all except root -->
|
||||
<record id="account.menu_finance_payables" model="ir.ui.menu">
|
||||
<field name="groups_id"
|
||||
eval="[(6, 0, [ref('base.group_erp_manager')])]" />
|
||||
</record>
|
||||
<!-- Membership products only for managers -->
|
||||
<record id="membership.menu_membership_products" model="ir.ui.menu">
|
||||
<field name="groups_id"
|
||||
eval="[(4, ref('golem_base.group_golem_manager'))]" />
|
||||
</record>
|
||||
<!-- Members Analysis for managers only -->
|
||||
<record id="membership.menu_report_membership" model="ir.ui.menu">
|
||||
<field name="groups_id"
|
||||
eval="[(6, 0, [ref('golem_base.group_golem_manager')])]" />
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
38
golem_base/views/menus.xml
Normal file
38
golem_base/views/menus.xml
Normal file
@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
Copyright 2017 Fabien Bourgeois <fabien@yaltik.com>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
|
||||
<odoo>
|
||||
<data noupdate="0">
|
||||
|
||||
<!-- Membership products only for managers -->
|
||||
<menuitem name="Configuration"
|
||||
id="membership.menu_marketing_config_association"
|
||||
parent="membership.menu_association" sequence="100" />
|
||||
<menuitem id="membership_products_menu"
|
||||
action="membership.action_membership_products"
|
||||
parent="membership.menu_marketing_config_association" sequence="20"
|
||||
groups="golem_base.group_golem_manager" />
|
||||
<!-- Members Analysis for managers only -->
|
||||
<record id="membership.menu_report_membership" model="ir.ui.menu">
|
||||
<field name="groups_id"
|
||||
eval="[(6, 0, [ref('golem_base.group_golem_manager')])]" />
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</odoo>
|
Loading…
Reference in New Issue
Block a user