Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3966 Переглядів

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?


Аватар
Відмінити
Автор Найкраща відповідь

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!

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
серп. 23
3882
0
квіт. 23
2957
1
груд. 21
4953
5
черв. 21
17803
1
бер. 21
5747