Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2478 Zobrazení
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

Avatar
Zrušit
Nejlepší odpověď

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.

 



Avatar
Zrušit
Autor

thank you

What is "create_company" supposed to do, exactly ?

Autor

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 Odpovědi Zobrazení Aktivita
1
kvě 22
2300
1
dub 21
4318
3
bře 25
1121
1
led 22
2675
0
bře 15
3047