Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2385 Näkymät
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
Hylkää
Paras vastaus

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
Hylkää
Tekijä

thank you

What is "create_company" supposed to do, exactly ?

Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
toukok. 22
2214
1
huhtik. 21
4249
3
maalisk. 25
980
1
tammik. 22
2535
0
maalisk. 15
2987