콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
1443 화면
<menuitem id="menu_contacts_doctors"
name="Nurses"
parent="menu_contacts"
action="contacts.action_contacts"
sequence="1"/> //Action Working Correctly
<menuitem id="menu_contacts_patients"
name="Patients"
parent="menu_contacts"
action="action_patients_tree"
sequence="0"/> //Action not working correctly, after assigning action in it, it disable menuitem, tree view is defined below
xml version="1.0"?>
<odoo>
<data>
<record id="action_patients_tree" model="ir.actions.act_window">
<field name="name">Patientsfield>
<field name="res_model">medical.patientsfield>
<field name="view_mode">tree,formfield>
record>
<record model="ir.ui.view" id="medical_patients_view_tree">
<field name="name">Patientsfield>
<field name="model">medical.patientsfield>
<field name="arch" type="xml">
<tree>
<field name="name">field>
<field name="diagnosis">field>
<field name="passport_number">field>
tree>
field>
record>
data>
odoo>




아바타
취소
베스트 답변

Hi  Muhammad Ehsan Shaikh,

Make sure that you have given access right to the model  'medical.patientsfield'

if not add the following access in your  .csv file


access_medical_patient,access.medical.patient,model_medical_patientsfield,base.group_user,1,1,1,1



Hope it helps,
Kiran K

아바타
취소
관련 게시물 답글 화면 활동
2
8월 23
1794
0
1월 23
1426
2
12월 19
9873
0
11월 18
2221
1
5월 25
251