Browse Source

[REFACT] change history security groups id to easy_my_coop

pull/7/head
houssine 6 years ago
parent
commit
6d2f3899bd
  1. 12
      easy_my_coop/security/easy_my_coop_security.xml
  2. 30
      easy_my_coop/security/ir.model.access.csv
  3. 2
      easy_my_coop/views/account_invoice_view.xml
  4. 4
      easy_my_coop/views/account_journal_view.xml
  5. 2
      easy_my_coop/views/email_template_view.xml
  6. 2
      easy_my_coop/views/operation_request_view.xml
  7. 18
      easy_my_coop/views/product_view.xml
  8. 2
      easy_my_coop/views/res_company_view.xml
  9. 16
      easy_my_coop/views/res_partner_view.xml
  10. 24
      easy_my_coop/views/subscription_request_view.xml
  11. 4
      easy_my_coop/wizard/cooperative_history_wizard.xml
  12. 2
      easy_my_coop/wizard/create_subscription_from_partner.xml
  13. 2
      easy_my_coop/wizard/update_partner_info.xml
  14. 2
      easy_my_coop/wizard/update_share_line.xml
  15. 2
      easy_my_coop/wizard/validate_subscription_request.xml
  16. 2
      easy_my_coop_dividend/views/dividend_views.xml
  17. 2
      easy_my_coop_recompute_coop_number/wizard/cooperator_number_wizard.xml
  18. 10
      easy_my_coop_taxshelter_report/views/tax_shelter_declaration_view.xml

12
easy_my_coop/security/easy_my_coop_security.xml

@ -3,27 +3,27 @@
<data>
<record model="ir.module.category" id="module_category_cooperator_management">
<field name="name">EasyMy Coop</field>
<field name="name">Cooperative Management</field>
<field name="description">Helps you manage your cooperator.</field>
<field name="sequence">3</field>
</record>
<record id="group_energiris_user" model="res.groups">
<record id="group_easy_my_coop_user" model="res.groups">
<field name="name">User</field>
<field name="category_id" ref="module_category_cooperator_management"/>
</record>
<record id="group_energiris_manager" model="res.groups">
<record id="group_easy_my_coop_manager" model="res.groups">
<field name="name">Manager</field>
<field name="category_id" ref="module_category_cooperator_management"/>
<field name="implied_ids" eval="[(4, ref('group_energiris_user'))]"/>
<field name="implied_ids" eval="[(4, ref('group_easy_my_coop_user'))]"/>
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>
<record id="group_energiris_super_manager" model="res.groups">
<record id="group_easy_my_coop_super_manager" model="res.groups">
<field name="name">Super Manager</field>
<field name="category_id" ref="module_category_cooperator_management"/>
<field name="implied_ids" eval="[(4, ref('group_energiris_manager'))]"/>
<field name="implied_ids" eval="[(4, ref('group_easy_my_coop_manager'))]"/>
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>

30
easy_my_coop/security/ir.model.access.csv

@ -1,19 +1,19 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_subscription_request,subscription.request,model_subscription_request,group_energiris_manager,1,1,1,0
access_res_partner,res.partner,model_res_partner,group_energiris_manager,1,1,1,0
access_subscription_request,subscription.request,model_subscription_request,group_easy_my_coop_manager,1,1,1,0
access_res_partner,res.partner,model_res_partner,group_easy_my_coop_manager,1,1,1,0
access_share_line_employee,share.line,model_share_line,base.group_user,1,0,0,0
access_subscription_request_employee,access.subscription.request user,model_subscription_request,base.group_user,1,0,0,0
access_share_line_manager,share.line,model_share_line,group_energiris_manager,1,1,1,0
access_account_invoice,account.invoice,model_account_invoice,group_energiris_manager,1,1,1,0
access_subscription_register,subscription_register,model_subscription_register,group_energiris_manager,1,1,1,0
access_account_invoice_super_manager,account.invoice,model_account_invoice,group_energiris_super_manager,1,1,1,1
access_share_line_super_manager,share.line,model_share_line,group_energiris_super_manager,1,1,1,1
access_subscription_register_super_manager,subscription_register,model_subscription_register,group_energiris_super_manager,1,1,1,1
access_subscription_request_super_manager,subscription.request,model_subscription_request,group_energiris_super_manager,1,1,1,1
access_operation_request,operation.request,model_operation_request,group_energiris_manager,1,1,1,0
access_operation_request_super_manager,operation.request,model_operation_request,group_energiris_super_manager,1,1,1,1
access_product_product_user,product.product,product.model_product_product,group_energiris_user,1,1,1,0
access_product_product_manager,product.product,product.model_product_product,group_energiris_manager,1,1,1,1
access_product_template_user,product.template,product.model_product_template,group_energiris_user,1,1,1,0
access_product_template_manager,product.template,product.model_product_template,group_energiris_manager,1,1,1,1
access_share_line_manager,share.line,model_share_line,group_easy_my_coop_manager,1,1,1,0
access_account_invoice,account.invoice,model_account_invoice,group_easy_my_coop_manager,1,1,1,0
access_subscription_register,subscription_register,model_subscription_register,group_easy_my_coop_manager,1,1,1,0
access_account_invoice_super_manager,account.invoice,model_account_invoice,group_easy_my_coop_super_manager,1,1,1,1
access_share_line_super_manager,share.line,model_share_line,group_easy_my_coop_super_manager,1,1,1,1
access_subscription_register_super_manager,subscription_register,model_subscription_register,group_easy_my_coop_super_manager,1,1,1,1
access_subscription_request_super_manager,subscription.request,model_subscription_request,group_easy_my_coop_super_manager,1,1,1,1
access_operation_request,operation.request,model_operation_request,group_easy_my_coop_manager,1,1,1,0
access_operation_request_super_manager,operation.request,model_operation_request,group_easy_my_coop_super_manager,1,1,1,1
access_product_product_user,product.product,product.model_product_product,group_easy_my_coop_user,1,1,1,0
access_product_product_manager,product.product,product.model_product_product,group_easy_my_coop_manager,1,1,1,1
access_product_template_user,product.template,product.model_product_template,group_easy_my_coop_user,1,1,1,0
access_product_template_manager,product.template,product.model_product_template,group_easy_my_coop_manager,1,1,1,1
"",,,,,,,

2
easy_my_coop/views/account_invoice_view.xml

@ -42,7 +42,7 @@
<field name="act_window_id" ref="action_invoice_tree_coop"/>
</record>
<menuitem action="action_invoice_tree_coop" id="menu_action_invoice_tree_coop" parent="menu_easy_my_coop_main_coop" groups="easy_my_coop.group_energiris_user"/>
<menuitem action="action_invoice_tree_coop" id="menu_action_invoice_tree_coop" parent="menu_easy_my_coop_main_coop" groups="easy_my_coop.group_easy_my_coop_user"/>
<record id="account.action_invoice_tree1" model="ir.actions.act_window">
<field name="name">Customer Invoices</field>

4
easy_my_coop/views/account_journal_view.xml

@ -6,7 +6,7 @@
<field name="inherit_id" ref="account.view_account_journal_form"/>
<field name="arch" type="xml">
<field name="bank_id" position="after">
<field name="get_cooperator_payment" groups="easy_my_coop.group_energiris_super_manager"/>
<field name="get_cooperator_payment" groups="easy_my_coop.group_easy_my_coop_super_manager"/>
<field name="get_general_payment"/>
</field>
</field>
@ -18,7 +18,7 @@
<field name="inherit_id" ref="account.view_account_bank_journal_form"/>
<field name="arch" type="xml">
<field name="currency_id" position="after">
<field name="get_cooperator_payment" groups="easy_my_coop.group_energiris_super_manager"/>
<field name="get_cooperator_payment" groups="easy_my_coop.group_easy_my_coop_super_manager"/>
<field name="get_general_payment"/>
</field>
</field>

2
easy_my_coop/views/email_template_view.xml

@ -11,6 +11,6 @@
<field name="search_view_id" ref="mail.view_email_template_search"/>
</record>
<menuitem id="menu_easy_my_coop_templates" parent="menu_easy_my_coop_config" action="action_easy_my_coop_email_templates" sequence="10" groups="group_energiris_manager"/>
<menuitem id="menu_easy_my_coop_templates" parent="menu_easy_my_coop_config" action="action_easy_my_coop_email_templates" sequence="10" groups="group_easy_my_coop_manager"/>
</data>
</odoo>

2
easy_my_coop/views/operation_request_view.xml

@ -104,5 +104,5 @@
<field name="view_id" ref="operation_request_tree"/>
</record>
<menuitem action="operation_request_action" name="Operation request" id="menu_easy_my_coop_operation_request" parent="menu_easy_my_coop_main_subscription" sequence="20" groups="easy_my_coop.group_energiris_manager"/>
<menuitem action="operation_request_action" name="Operation request" id="menu_easy_my_coop_operation_request" parent="menu_easy_my_coop_main_subscription" sequence="20" groups="easy_my_coop.group_easy_my_coop_manager"/>
</odoo>

18
easy_my_coop/views/product_view.xml

@ -5,24 +5,24 @@
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='purchase_ok']/.." position="after">
<div groups="easy_my_coop.group_energiris_super_manager">
<div groups="easy_my_coop.group_easy_my_coop_super_manager">
<field name="is_share"/>
<label for="is_share"/>
</div>
<div attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_energiris_user">
<div attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_easy_my_coop_user">
<field name="display_on_website"/>
<label for="display_on_website"/>
</div>
</xpath>
<xpath expr="//field[@name='type']" position="after">
<field name="short_name" attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_energiris_user"/>
<field name="default_share_product" attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_energiris_user"/>
<field name="force_min_qty" attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_energiris_user"/>
<field name="minimum_quantity" attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_energiris_user"/>
<field name="short_name" attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_easy_my_coop_user"/>
<field name="default_share_product" attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_easy_my_coop_user"/>
<field name="force_min_qty" attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_easy_my_coop_user"/>
<field name="minimum_quantity" attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_easy_my_coop_user"/>
<field name="customer" attrs="{'invisible':[('is_share','=',False)]}"/>
<field name="by_company" attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_energiris_user"/>
<field name="by_individual" attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_energiris_user"/>
<field name="mail_template" attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_energiris_user"/>
<field name="by_company" attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_easy_my_coop_user"/>
<field name="by_individual" attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_easy_my_coop_user"/>
<field name="mail_template" attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_easy_my_coop_user"/>
</xpath>
</field>
</record>

2
easy_my_coop/views/res_company_view.xml

@ -5,7 +5,7 @@
<field name="model">res.company</field>
<field name="arch" type="xml">
<group name="social_media" position="before">
<group name="coop_grp" string="EasyMy Coop" groups="easy_my_coop.group_energiris_manager">
<group name="coop_grp" string="EasyMy Coop" groups="easy_my_coop.group_easy_my_coop_manager">
<field name="unmix_share_type"/>
<field name="allow_id_card_upload"/>
<field name="create_user"/>

16
easy_my_coop/views/res_partner_view.xml

@ -9,9 +9,9 @@
<sheet position="before">
<header>
<button string="Create Subscription" name="%(action_view_create_subscription)d"
type="action" context="{'default_active_id': active_id}" groups="easy_my_coop.group_energiris_manager"/>
type="action" context="{'default_active_id': active_id}" groups="easy_my_coop.group_easy_my_coop_manager"/>
<button string="Update info" name="%(action_view_update_partner_info)d"
type="action" context="{'default_active_id': active_id}" groups="easy_my_coop.group_energiris_manager"/>
type="action" context="{'default_active_id': active_id}" groups="easy_my_coop.group_easy_my_coop_manager"/>
</header>
</sheet>
@ -21,10 +21,10 @@
<field name="representative" attrs="{'invisible':['|',('parent_id','=',False),('is_company','=',True)]}"/>
<field name="cooperator_register_number" readonly="True" attrs="{'invisible':[('member','=',False)]}"/>
<field name="company_register_number" readonly="True" attrs="{'invisible':[('is_company','=',False)]}"/>
<field name="national_register_number" readonly="True" attrs="{'invisible':[('is_company','=',True)]}" groups="easy_my_coop.group_energiris_manager"/>
<field name="coop_candidate" groups="easy_my_coop.group_energiris_user"/>
<field name="cooperator" invisible="True" groups="easy_my_coop.group_energiris_super_manager"/>
<field name="member" groups="easy_my_coop.group_energiris_super_manager"/>
<field name="national_register_number" readonly="True" attrs="{'invisible':[('is_company','=',True)]}" groups="easy_my_coop.group_easy_my_coop_manager"/>
<field name="coop_candidate" groups="easy_my_coop.group_easy_my_coop_user"/>
<field name="cooperator" invisible="True" groups="easy_my_coop.group_easy_my_coop_super_manager"/>
<field name="member" groups="easy_my_coop.group_easy_my_coop_super_manager"/>
<field name="cooperator_type" attrs="{'invisible':[('member','=',False)]}"/>
<field name="effective_date" attrs="{'invisible':[('member','=',False)]}"/>
</group>
@ -35,7 +35,7 @@
</xpath>
<page name='sales_purchases' position="after">
<page string="Shares" name="share" attrs="{'invisible':[('member','=',False)]}" groups="easy_my_coop.group_energiris_user">
<page string="Shares" name="share" attrs="{'invisible':[('member','=',False)]}" groups="easy_my_coop.group_easy_my_coop_user">
<group>
<field name="number_of_share"/>
<field name="total_value"/>
@ -50,7 +50,7 @@
</tree>
</field>
</page>
<page string="Share subscriptions" name="share_subscription" attrs="{'invisible':[('cooperator','=',False)]}" groups="easy_my_coop.group_energiris_user">
<page string="Share subscriptions" name="share_subscription" attrs="{'invisible':[('cooperator','=',False)]}" groups="easy_my_coop.group_easy_my_coop_user">
<field name="subscription_request_ids">
<tree create="false" delete="false" edit="false">
<field name="share_short_name"/>

24
easy_my_coop/views/subscription_request_view.xml

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<menuitem name="Easy-My Coop" id="menu_main_easy_my_coop" sequence="40" groups="easy_my_coop.group_energiris_user"/>
<menuitem name="Subscription" id="menu_easy_my_coop_main_subscription" parent="menu_main_easy_my_coop" sequence="10" groups="easy_my_coop.group_energiris_manager"/>
<menuitem name="Reporting" id="menu_easy_my_coop_main_reporting" parent="menu_main_easy_my_coop" sequence="40" groups="easy_my_coop.group_energiris_manager"/>
<menuitem name="Easy-My Coop" id="menu_main_easy_my_coop" sequence="40" groups="easy_my_coop.group_easy_my_coop_user"/>
<menuitem name="Subscription" id="menu_easy_my_coop_main_subscription" parent="menu_main_easy_my_coop" sequence="10" groups="easy_my_coop.group_easy_my_coop_manager"/>
<menuitem name="Reporting" id="menu_easy_my_coop_main_reporting" parent="menu_main_easy_my_coop" sequence="40" groups="easy_my_coop.group_easy_my_coop_manager"/>
<record id="subscription_request_tree" model="ir.ui.view">
<field name="name">subscription.request.tree</field>
@ -23,8 +23,8 @@
<field name="state"/>
<field name="validated" invisible="True"/>
<button type="object" name="validate_subscription_request" attrs="{'invisible':['|',('state','!=','draft'),('validated','=',False)]}" icon="STOCK_MEDIA_PLAY" />
<button type="object" name="block_subscription_request" states="draft" groups="easy_my_coop.group_energiris_user" icon="gtk-cancel"/>
<button type="object" name="unblock_subscription_request" states="block" groups="easy_my_coop.group_energiris_manager" icon="gtk-jump-to"/>
<button type="object" name="block_subscription_request" states="draft" groups="easy_my_coop.group_easy_my_coop_user" icon="gtk-cancel"/>
<button type="object" name="unblock_subscription_request" states="block" groups="easy_my_coop.group_easy_my_coop_manager" icon="gtk-jump-to"/>
</tree>
</field>
</record>
@ -37,14 +37,14 @@
<header>
<button string="Validate" type="object" name="validate_subscription_request" attrs="{'invisible':['|',('state','not in',['draft','waiting']),('validated','=',False)]}"/>
<button string="Waiting list" type="object" name="put_on_waiting_list" states="draft"/>
<button string="Cancel" type="object" name="cancel_subscription_request" states="draft,done,block" groups="easy_my_coop.group_energiris_manager"/>
<button string="Cancel" type="object" name="cancel_subscription_request" states="draft,done,block" groups="easy_my_coop.group_easy_my_coop_manager"/>
<field name="state" widget="statusbar" statusbar_visible="draft,cancelled,done,failed"/>
</header>
<sheet>
<group>
<group>
<field name="already_cooperator"/>
<field name="is_company" groups="easy_my_coop.group_energiris_super_manager"/>
<field name="is_company" groups="easy_my_coop.group_easy_my_coop_super_manager"/>
<field name="is_operation" invisible="True"/>
<field name="company_name" attrs="{'invisible':[('is_company','=',False)]}"/>
<field name="company_email" attrs="{'invisible':[('is_company','=',False)]}"/>
@ -66,7 +66,7 @@
<field name="country_id" options="{'no_create':True}"/>
</group>
<group>
<field name="capital_release_request_date" groups="easy_my_coop.group_energiris_super_manager"/>
<field name="capital_release_request_date" groups="easy_my_coop.group_easy_my_coop_super_manager"/>
<field name="date"/>
<field name="source"/>
<field name="ordered_parts"/>
@ -152,8 +152,8 @@
<field name="state"/>
<field name="validated" invisible="True"/>
<button type="object" name="validate_subscription_request" attrs="{'invisible':['|',('state','!=','draft'),('validated','=',False)]}" icon="STOCK_MEDIA_PLAY"/>
<button type="object" name="block_subscription_request" states="draft" groups="easy_my_coop.group_energiris_user" icon="gtk-cancel"/>
<button type="object" name="unblock_subscription_request" states="block" groups="easy_my_coop.group_energiris_manager" icon="gtk-jump-to"/>
<button type="object" name="block_subscription_request" states="draft" groups="easy_my_coop.group_easy_my_coop_user" icon="gtk-cancel"/>
<button type="object" name="unblock_subscription_request" states="block" groups="easy_my_coop.group_easy_my_coop_manager" icon="gtk-jump-to"/>
</tree>
</field>
</record>
@ -177,7 +177,7 @@
<form string="Share line">
<header>
<button string="Update info" name="%(action_view_update_share_line_info)d"
type="action" context="{'default_active_id': active_id}" groups="easy_my_coop.group_energiris_super_manager"/>
type="action" context="{'default_active_id': active_id}" groups="easy_my_coop.group_easy_my_coop_super_manager"/>
</header>
<sheet>
<group>
@ -236,5 +236,5 @@
<field name="view_type">form</field>
</record>
<menuitem action="share_line_action" name="Share lines" id="menu_easy_my_coop_share_line" parent="menu_easy_my_coop_main_subscription" sequence="20" groups="group_energiris_super_manager"/>
<menuitem action="share_line_action" name="Share lines" id="menu_easy_my_coop_share_line" parent="menu_easy_my_coop_main_subscription" sequence="20" groups="group_easy_my_coop_super_manager"/>
</odoo>

4
easy_my_coop/wizard/cooperative_history_wizard.xml

@ -35,7 +35,7 @@
<field name="multi">True</field>
</record>
<menuitem id="menu_energiris_reporting" name="Reporting" parent="menu_main_energiris" sequence="20"/>
<menuitem id="menu_coop_history_wizard_report" name="Cooperative history report" parent="menu_energiris_reporting" action="action_cooperative_history_wizard" sequence="10"/>
<menuitem id="menu_easy_my_coop_reporting" name="Reporting" parent="menu_main_easy_my_coop" sequence="20"/>
<menuitem id="menu_coop_history_wizard_report" name="Cooperative history report" parent="menu_easy_my_coop_reporting" action="action_cooperative_history_wizard" sequence="10"/>
</data>
</openerp>

2
easy_my_coop/wizard/create_subscription_from_partner.xml

@ -37,7 +37,7 @@
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
<field name="groups_id" eval="[(4,ref('easy_my_coop.group_energiris_user'))]"/>
<field name="groups_id" eval="[(4,ref('easy_my_coop.group_easy_my_coop_user'))]"/>
</record>
</data>

2
easy_my_coop/wizard/update_partner_info.xml

@ -28,7 +28,7 @@
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
<field name="groups_id" eval="[(4,ref('easy_my_coop.group_energiris_manager'))]"/>
<field name="groups_id" eval="[(4,ref('easy_my_coop.group_easy_my_coop_manager'))]"/>
</record>
</data>

2
easy_my_coop/wizard/update_share_line.xml

@ -29,7 +29,7 @@
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
<field name="groups_id" eval="[(4,ref('easy_my_coop.group_energiris_super_manager'))]"/>
<field name="groups_id" eval="[(4,ref('easy_my_coop.group_easy_my_coop_super_manager'))]"/>
</record>
</data>

2
easy_my_coop/wizard/validate_subscription_request.xml

@ -25,6 +25,6 @@
<field name="view_mode">form</field>
<field name="key2">client_action_multi</field>
<field name="target">new</field>
<field name="groups_id" eval="[(4,ref('easy_my_coop.group_energiris_manager'))]"/>
<field name="groups_id" eval="[(4,ref('easy_my_coop.group_easy_my_coop_manager'))]"/>
</record>
</odoo>

2
easy_my_coop_dividend/views/dividend_views.xml

@ -1,6 +1,6 @@
<odoo>
<data>
<menuitem name="Dividend" id="menu_easy_my_coop_main_dividend" parent="easy_my_coop.menu_main_easy_my_coop" groups="easy_my_coop.group_energiris_manager" sequence="30" />
<menuitem name="Dividend" id="menu_easy_my_coop_main_dividend" parent="easy_my_coop.menu_main_easy_my_coop" groups="easy_my_coop.group_easy_my_coop_manager" sequence="30" />
<record id="dividend_year_form" model="ir.ui.view">
<field name="name">dividend.year.form</field>

2
easy_my_coop_recompute_coop_number/wizard/cooperator_number_wizard.xml

@ -29,7 +29,7 @@
<field name="multi">True</field>
</record>
<menuitem id="menu_register_number_wizard" parent="easy_my_coop.menu_easy_my_coop_config" action="action_register_number_wizard" sequence="30" groups="easy_my_coop.group_energiris_super_manager"/>
<menuitem id="menu_register_number_wizard" parent="easy_my_coop.menu_easy_my_coop_config" action="action_register_number_wizard" sequence="30" groups="easy_my_coop.group_easy_my_coop_super_manager"/>
</data>
</openerp>

10
easy_my_coop_taxshelter_report/views/tax_shelter_declaration_view.xml

@ -9,9 +9,9 @@
<field name="arch" type="xml">
<form string="Tax shelter declaration">
<header>
<button name="compute_declaration" string="Process Declaration" type="object" states="draft" class="oe_highlight" groups="easy_my_coop.group_energiris_manager"/>
<button name="validate_declaration" string="Validate Declaration" type="object" states="computed" groups="easy_my_coop.group_energiris_manager"/>
<button name="reset_declaration" string="Reset Declaration" type="object" states="computed" groups="easy_my_coop.group_energiris_manager"/>
<button name="compute_declaration" string="Process Declaration" type="object" states="draft" class="oe_highlight" groups="easy_my_coop.group_easy_my_coop_manager"/>
<button name="validate_declaration" string="Validate Declaration" type="object" states="computed" groups="easy_my_coop.group_easy_my_coop_manager"/>
<button name="reset_declaration" string="Reset Declaration" type="object" states="computed" groups="easy_my_coop.group_easy_my_coop_manager"/>
<field name="state" widget="statusbar"/>
</header>
<sheet>
@ -73,7 +73,7 @@
<field name="view_id" ref="tax_shelter_declaration_tree"/>
</record>
<menuitem action="tax_shelter_declaration_action" name="Tax Shelter Declaration" id="menu_tax_shelter_declaration" parent="menu_easy_my_coop_main_declaration" sequence="10" groups="easy_my_coop.group_energiris_manager"/>
<menuitem action="tax_shelter_declaration_action" name="Tax Shelter Declaration" id="menu_tax_shelter_declaration" parent="menu_easy_my_coop_main_declaration" sequence="10" groups="easy_my_coop.group_easy_my_coop_manager"/>
<record id="tax_shelter_certificate_form" model="ir.ui.view">
<field name="name">tax.shelter.certificate.form</field>
@ -196,6 +196,6 @@
<field name="view_id" ref="tax_shelter_certificate_tree"/>
</record>
<menuitem action="tax_shelter_certificate_action" name="Tax Shelter Certificates" id="menu_tax_shelter_certificate" parent="menu_easy_my_coop_main_declaration" sequence="20" groups="easy_my_coop.group_energiris_manager"/>
<menuitem action="tax_shelter_certificate_action" name="Tax Shelter Certificates" id="menu_tax_shelter_certificate" parent="menu_easy_my_coop_main_declaration" sequence="20" groups="easy_my_coop.group_easy_my_coop_manager"/>
</data>
</odoo>
Loading…
Cancel
Save