Skip to Content
Menu
This question has been flagged
1 Atsakyti
4105 Rodiniai

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?


Portretas
Atmesti
Autorius 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!

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
rugp. 23
4133
0
bal. 23
3086
1
gruod. 21
5114
5
birž. 21
18057
1
kov. 21
5891