Odoo Help

Welcome!

This community 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.

0

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

By
Augusto Samame
on 11/8/16, 5:14 PM 96 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?



0

deep

--deep--
1617
| 5 4 7
Bengaluru, India
--deep--

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

deep
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,  

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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