Skip to Content
Menú
This question has been flagged
1 Respondre
3997 Vistes

In my module I inherit:

from openerp import models, fields, api, _
class account_vat_declaration(models.Model):
_inherit = "account.vat.declaration"
... here some code...


After this menu behaves unexpectedly:

1) When I was working as an Admin menu Taxes Report is visible and all works

2) When I was working as an Financial Manager menu is not visible!


All permissions are set correctly, where it can be a problem?


Avatar
Descartar
Autor Best Answer

I've spent on this problem a long time. I decided to share the answer. I found an error. The error is in line:

class account_vat_declaration(models.Model): 

should be (exactly in this case):

class account_vat_declaration(models.TransientModel): 


Very strange behavior of the system!

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
d’ag. 23
3886
0
d’abr. 23
2966
1
de des. 21
4983
5
de juny 21
17851
1
de març 21
5761