Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
4002 Visninger

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
Kassér
Forfatter Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
aug. 23
3890
0
apr. 23
2969
1
dec. 21
4987
5
jun. 21
17857
1
mar. 21
5765