[UPDATE]menu and security
This commit is contained in:
parent
a549c02a4e
commit
2b74be9dff
|
|
@ -42,18 +42,18 @@
|
|||
<field name="name">Reopen Transaction</field>
|
||||
<field name="category_id" ref="module_category_cm"/>
|
||||
</record>
|
||||
<record id="outgoing_transaction_rule_user" model="ir.rule">
|
||||
<field name="name">User can view own outgoing transactions </field>
|
||||
<field name="model_id" ref="model_outgoing_transaction"/>
|
||||
<field name="domain_force">[ ('employee_id.user_id', '=', user.id)]</field>
|
||||
<field name="groups" eval="[(4, ref('exp_transaction_documents.group_cm_user'))]"/>
|
||||
</record>
|
||||
<record id="internal_transaction_rule_user" model="ir.rule">
|
||||
<field name="name">User can view own internal transactions </field>
|
||||
<field name="model_id" ref="model_internal_transaction"/>
|
||||
<field name="domain_force">[ ('employee_id.user_id', '=', user.id)]</field>
|
||||
<field name="groups" eval="[(4, ref('exp_transaction_documents.group_cm_user'))]"/>
|
||||
</record>
|
||||
<!-- <record id="outgoing_transaction_rule_user" model="ir.rule">-->
|
||||
<!-- <field name="name">User can view own outgoing transactions </field>-->
|
||||
<!-- <field name="model_id" ref="model_outgoing_transaction"/>-->
|
||||
<!-- <field name="domain_force">[ ('employee_id.user_id', '=', user.id)]</field>-->
|
||||
<!-- <field name="groups" eval="[(4, ref('exp_transaction_documents.group_cm_user'))]"/>-->
|
||||
<!-- </record>-->
|
||||
<!-- <record id="internal_transaction_rule_user" model="ir.rule">-->
|
||||
<!-- <field name="name">User can view own internal transactions </field>-->
|
||||
<!-- <field name="model_id" ref="model_internal_transaction"/>-->
|
||||
<!-- <field name="domain_force">[ ('employee_id.user_id', '=', user.id)]</field>-->
|
||||
<!-- <field name="groups" eval="[(4, ref('exp_transaction_documents.group_cm_user'))]"/>-->
|
||||
<!-- </record>-->
|
||||
<!-- todo start -->
|
||||
<!-- <record id="outgoing_transaction_rule_employee" model="ir.rule">-->
|
||||
<!-- <field name="name">Employee can view own outgoing transactions </field>-->
|
||||
|
|
|
|||
|
|
@ -4,8 +4,10 @@
|
|||
<menuitem id="cm_root_menu" name="Transactions Management"
|
||||
/>
|
||||
|
||||
|
||||
<!--setting menu-->
|
||||
<menuitem sequence="20" id="cm_settings_menu" name="Configuration" parent="cm_root_menu" groups="exp_transaction_documents.group_transaction_manager"/>
|
||||
<menuitem sequence="20" id="cm_settings_menu" name="Configuration" parent="cm_root_menu"
|
||||
groups="exp_transaction_documents.group_transaction_manager"/>
|
||||
|
||||
<!-- Settings menus and actions-->
|
||||
<!--Entities Menu and action -->
|
||||
|
|
@ -200,7 +202,8 @@
|
|||
<p class="oe_view_nocontent_create">Create the first Outgoing Internal Transaction
|
||||
</p>
|
||||
</field>
|
||||
<field name="view_ids" eval="[(5, 0, 0),(0, 0, {'view_mode': 'tree','view_id':ref('exp_transaction_documents.transaction_internal_tree')}),(0, 0, {'view_mode': 'form', 'view_id': ref('exp_transaction_documents.internal_transaction_form')})]"/>
|
||||
<field name="view_ids"
|
||||
eval="[(5, 0, 0),(0, 0, {'view_mode': 'tree','view_id':ref('exp_transaction_documents.transaction_internal_tree')}),(0, 0, {'view_mode': 'form', 'view_id': ref('exp_transaction_documents.internal_transaction_form')})]"/>
|
||||
<field name="search_view_id" ref="view_internal_transaction_filter"/>
|
||||
<field name="context">{}</field>
|
||||
</record>
|
||||
|
|
@ -616,5 +619,64 @@
|
|||
<!--Report Menu-->
|
||||
<menuitem id="parent_report_menu" name="Reports"
|
||||
parent="cm_root_menu" sequence="8"/>
|
||||
<!-- todo start -->
|
||||
<!-- Action for All Internal Transactions -->
|
||||
<record id="action_all_internal_transactions" model="ir.actions.act_window">
|
||||
<field name="name">All Internal Transactions</field>
|
||||
<field name="res_model">internal.transaction</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="help" type="html">
|
||||
<p class="oe_view_nocontent_create">Create the first Internal Transaction</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Action for All External Transactions -->
|
||||
<record id="action_all_external_transactions" model="ir.actions.act_window">
|
||||
<field name="name">All Outgoing External Transactions</field>
|
||||
<field name="res_model">outgoing.transaction</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="help" type="html">
|
||||
<p class="oe_view_nocontent_create">Create the first External Transaction</p>
|
||||
</field>
|
||||
</record>
|
||||
<!-- Action for All External Transactions -->
|
||||
<record id="action_all_incoming_external_transactions" model="ir.actions.act_window">
|
||||
<field name="name">All Incoming External Transactions</field>
|
||||
<field name="res_model">incoming.transaction</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="help" type="html">
|
||||
<p class="oe_view_nocontent_create">Create the first External Transaction</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Menu for All Internal Transactions -->
|
||||
<menuitem id="all_income_internal_tran_menu" name="All Internal Transaction"
|
||||
parent="exp_transaction_documents.parent_internal_tran_menu" groups="exp_transaction_documents.group_transaction_manager" sequence="2"/>
|
||||
|
||||
<menuitem id="menu_all_internal_transactions"
|
||||
name="All Internal Transactions"
|
||||
parent="exp_transaction_documents.all_income_internal_tran_menu"
|
||||
action="action_all_internal_transactions"
|
||||
groups="exp_transaction_documents.group_transaction_manager"
|
||||
sequence="1"/>
|
||||
|
||||
<!-- Menu for All External Transactions -->
|
||||
<menuitem id="menu_all_external_transactions"
|
||||
name="All Outgoing External Transactions"
|
||||
parent="exp_transaction_documents.parent_external_outgoing_tran_menu"
|
||||
action="action_all_external_transactions"
|
||||
groups="exp_transaction_documents.group_transaction_manager"
|
||||
sequence="5"/>
|
||||
|
||||
<menuitem id="menu_all_incoming_external_transactions"
|
||||
name="All Incoming External Transactions"
|
||||
parent="exp_transaction_documents.parent_external_incoming_tran_menu"
|
||||
action="action_all_incoming_external_transactions"
|
||||
sequence="5" groups="exp_transaction_documents.group_transaction_manager"/>
|
||||
|
||||
|
||||
<!-- todo end -->
|
||||
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
Loading…
Reference in New Issue