コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4057 ビュー

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!

アバター
破棄
関連投稿 返信 ビュー 活動
1
8月 23
4017
0
4月 23
3027
1
12月 21
5050
5
6月 21
17978
1
3月 21
5823