コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2527 ビュー
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

関連投稿 返信 ビュー 活動
1
5月 22
2333
1
4月 21
4354
3
3月 25
1159
1
1月 22
2698
0
3月 15
3082