Odoo Help


How to assign certain sales journals to specific users or teams Odoo v10

Augusto Samame
on 11/8/16, 5:14 PM 762 views

Our Salesmen are able to invoice using different Sales Journals. I have modified the account.invoice.form view so that Sales users can choose the Specific Sales Journal when creating the invoice by modifying the following line:

<field name="journal_id" groups="account.group_account_user" options="{'no_create': True}" attrs="{'readonly':[('move_name','!=',False)]}"/>

changed to 

<field name="journal_id" options="{'no_create': True}" attrs="{'readonly':[('move_name','!=',False)]}"/>

However, now Salesmen can select ALL sales journals from the dropdown, and only 1 or 2 correspond to the salesman / Sales Team.

Is there any way to filter these Journals by user or sales team so that only certain journals can be chosen?


Techno-Functional Associate with 7+ years of experience in Odoo (formerly known as OpenERP).

On 11/10/16, 1:55 AM

Specifying Sales Journal to each User, doesn't make any sense at all, because Journal is meant to group & categories the Chart of Accounts of your Company, so it is best to have one Sales Journal per company to avoid complexity and confusion.

But if you still want to use different journals for each user, then change the logic accordingly, probably in _default_journal method if you are using Odoo 9 or 10 or in default_get method,  where the logic of fetching Journal for that company is written, override the same to suit your requirement,  

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.


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)


Asked: 11/8/16, 5:14 PM
Seen: 762 times
Last updated: 11/10/16, 1:55 AM