Odoo Help

0

Unexpected menu behaviour - v8 new api

By
Zbik
on 4/21/15, 4:20 AM 717 views

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?


2

Zbik

--Zbik--
6293
| 6 4 7
Lodz, Poland
--Zbik--


Zbik
On 4/21/15, 4:31 AM

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!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 4/21/15, 4:20 AM
Seen: 717 times
Last updated: 4/21/15, 2:59 PM