diff --git a/__manifest__.py b/__manifest__.py index 4eb8bf1c88887951a87fd75e3fdd5e28403189ad..fb76d4ac3764ea6b77a41f35fa17dc7f9daca09b 100755 --- a/__manifest__.py +++ b/__manifest__.py @@ -43,5 +43,7 @@ "wizard/scop_bordereau_validate_confirm_view.xml", # Wizard dependency view "views/scop_bordereau_cg.xml", + # Menus + "views/menus.xml", ] } diff --git a/views/account_invoice.xml b/views/account_invoice.xml index 59350d0695461b75df11eb0ae7b2cf0eff9fccf9..0c0150510081e0efb1f5033d705c7fb1d6343f23 100644 --- a/views/account_invoice.xml +++ b/views/account_invoice.xml @@ -91,13 +91,5 @@ <field name="act_window_id" ref="action_scop_cg_appel_cotisation"/> </record> - <!-- MENUS --> - <menuitem id="menu_scop_cotisation_cg_appel_cotisation" - name="Appels de cotisations" - parent="cgscop_cotisation.menu_scop_cotisation" - groups="cgscop_cotisation_cg.group_cotisation_cg_administrative" - action="action_scop_cg_appel_cotisation" - sequence="20"/> - </data> </odoo> \ No newline at end of file diff --git a/views/menus.xml b/views/menus.xml new file mode 100644 index 0000000000000000000000000000000000000000..cf83ae6744ce629cd8ef5fcbb472b79e762df853 --- /dev/null +++ b/views/menus.xml @@ -0,0 +1,32 @@ +<?xml version="1.0"?> +<!-- Copyright 2019 Le Filament + License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> + +<odoo> + <data> + <!-- MENUS --> + <menuitem id="menu_scop_cotisation_cg_main" + parent="cgscop_cotisation.menu_scop_cotisation" + name="Gestion des cotisations CG Scop" + groups="cgscop_cotisation_cg.group_cotisation_cg_administrative" + sequence="10"/> + <menuitem id="menu_scop_cotisation_cg_calcul" + name="Campagnes de cotisations" + parent="cgscop_cotisation_cg.menu_scop_cotisation_cg_main" + groups="cgscop_cotisation_cg.group_cotisation_cg_administrative" + action="action_scop_cotisation_cg" + sequence="10"/> + <menuitem name="Bordereaux" + id="scop_bordereau_menu" + parent="cgscop_cotisation_cg.menu_scop_cotisation_cg_main" + groups="cgscop_cotisation_cg.group_cotisation_cg_administrative" + action="scop_bordereau_act_window" + sequence="20"/> + <menuitem id="menu_scop_cotisation_cg_appel_cotisation" + name="Appels de cotisations" + parent="cgscop_cotisation_cg.menu_scop_cotisation_cg_main" + groups="cgscop_cotisation_cg.group_cotisation_cg_administrative" + action="action_scop_cg_appel_cotisation" + sequence="30"/> + </data> +</odoo> diff --git a/views/scop_bordereau_cg.xml b/views/scop_bordereau_cg.xml index c2134d9debf282381d1d17324dd410df5e71375c..b1388faff5d1cea6316131080cf69a9f7d6e3dae 100644 --- a/views/scop_bordereau_cg.xml +++ b/views/scop_bordereau_cg.xml @@ -235,13 +235,5 @@ <field name="context">{'search_default_current_year': 1}</field> </record> - <!-- Menu --> - <menuitem name="Bordereaux" - id="scop_bordereau_menu" - parent="cgscop_cotisation.menu_scop_cotisation" - groups="cgscop_cotisation_cg.group_cotisation_cg_administrative" - action="scop_bordereau_act_window" - sequence="30"/> - </data> </odoo> \ No newline at end of file diff --git a/views/scop_cotisation_cg.xml b/views/scop_cotisation_cg.xml index 58b288ddbfeeb461dab99082b5321521fdc929f9..cead779d9a90cf06c42c96b83fe29ead09f74f41 100644 --- a/views/scop_cotisation_cg.xml +++ b/views/scop_cotisation_cg.xml @@ -155,12 +155,5 @@ <field name="help">Affiche les bases de calcul des cotisations</field> </record> - - <!-- MENUS --> - <menuitem id="menu_scop_cotisation_cg_calcul" - parent="cgscop_cotisation.menu_scop_cotisation" - groups="cgscop_cotisation_cg.group_cotisation_cg_administrative" - action="action_scop_cotisation_cg" - sequence="10"/> </data> </odoo>