Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2651 มุมมอง
I have a view extending base.view_partner_form

Like this

name="inherit_id" ref="base.view_partner_form"/>


Of course, the model it's supposed to work on also extends res.partner


I get this error


create_company non è una azione valida per sp.paziente


it's the Italina for


create_company is not a valid action for sp.paziente

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi  Adriano Peluso,

Error is not with 'view_partner_form' it's in your custom module with model  'sp.paziente'

Make sure 

  • the file name is added in __init__.py
  • added function for create_company  in your model.

 



อวตาร
ละทิ้ง
ผู้เขียน

thank you

What is "create_company" supposed to do, exactly ?

ผู้เขียน

ok, I copied create_company from res.partner, now I have a different error and it has something to do with a missing "_compute_im_status"

Maybe I should reconsider my idea to extend with _inherits

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 22
2452
1
เม.ย. 21
4438
3
มี.ค. 25
1241
1
ม.ค. 22
2781
0
มี.ค. 15
3129