Two Menu Entries but Different Access

I have 1 View Definition for a model and 2 xmls (form & tree)

      <record model="ir.ui.view" id="project_view_form">
         <field name="model">afx.project</field>
         <field name="type">form</field>
         <field name="name">project_form</field>
      </record>
      <record model="ir.ui.view" id="project_view_list">
         <field name="model">afx.project</field>
         <field name="type">tree</field>
         <field name="name">project_list</field>
      </record>

The above view definition is use by 2 menu entries

      <record model="ir.action.act_window" id="act_project_form">
         <field name="name">All Projects</field>
         <field name="res_model">afx.project</field>
      </record>
      <record model="ir.action.act_window.view" id="act_project_form_view1">
         <field name="sequence" eval="10"/>
         <field name="view" ref="project_view_list"/>
         <field name="act_window" ref="act_project_form"/>
      </record>
      <record model="ir.action.act_window.view" id="act_project_form_view2">
         <field name="sequence" eval="20"/>
         <field name="view" ref="project_view_form"/>
         <field name="act_window" ref="act_project_form"/>
      </record>

and

      <record model="ir.action.act_window" id="act_rpa_project_form">
         <field name="name">RPA Projects</field>
         <field name="res_model">afx.project</field>
      </record>
      <record model="ir.action.act_window.view" id="act_rpa_project_form_view1">
         <field name="sequence" eval="10"/>
         <field name="view" ref="project_view_list"/>
         <field name="act_window" ref="act_rpa_project_form"/>
      </record>
      <record model="ir.action.act_window.view" id="act_rpa_project_form_view2">
         <field name="sequence" eval="20"/>
         <field name="view" ref="project_view_form"/>
         <field name="act_window" ref="act_rpa_project_form"/>
      </record>

Each menu entry has their own menu item as below:

      <menuitem
         name="Project"
         sequence="50"
         id="menu_project"/>
      <menuitem
         parent="menu_project"
         action="act_project_form"
         sequence="10"
         id="menu_project_form"/>
      <menuitem
         parent="menu_project"
         action="act_rpa_project_form"
         sequence="10"
         id="menu_rpa_project_form"/>

Inside User-Group I defined 3 settings:
1st one is to set a generic access to tables required, called Project Administrator group as below:

The 2nd and 3rd groups are inherited from the above Project Administrator group. the setup for each are as follows:

1st is called All Proj Admin group

2nd is called RPA Proj Admin group

Now the funny part is, when user A that assigned to All Proj Admin, A can create a new Project with no problem as below:

While the user B that assigned to RPA Proj Admin, cannot insert anything to the input fields as if RPA Proj Admin group doesn’t have WRITE access, as below

Meaning both users can opened the new Project form, but only one can input and save to DB.
What am I missing here?

Note: user A and B access to nav-bar is differentiate on login process. so when user A logged-in A will see All Projects nav-bar button, while if B logged-in B will see RPA Projects nav-bar button.

Bromo

Please ignore this topic, the bug is at my code level. Really sorry

Bromo

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.