Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2574 Переглядів
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
2376
1
квіт. 21
4384
3
бер. 25
1170
1
січ. 22
2713
0
бер. 15
3089