Some users have outsourced salespeople which not necessarily will be Odoo users. In order to keep track of the sales done by outside salespeople, creating a portal user for them and assigning them to sales orders is a good workaround
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
Click on the
bug right next to your user on the top right of the screen >
Edit View: Form
Go to Inherited Views > go to the Odoo Studio view (or create a new inherited view):
Add this xpath to change the domain of the field user_id :
<xpath expr="//field[@name='user_id']" position="attributes">
<attribute name="domain">["|",["groups_id","in",23],["groups_id","in",8]]</attribute>
</xpath>
Make sure that you are adding the groups_id for the group “Portal” and “User: Own Documents Only” (from Sales). This can vary according to each database.
.
In case anyone was wondering:
The solution worked perfectly without needing to access the backend. Unfortunately, the same solution applied to the Odoo Studio view or other views in the Contacts module does not affect the Salesperson field.
Solution in Contact module:
- Go to Contacts and open any contact.
- Open Studio.
- Click on Salesperson and then Domain.
- Edit the filter to: ["|", ("share", "=", False), ("share", "=", True)]
Did you read the part at the bottom where he posted "Make sure that you are adding the groups_id for the group “Portal” and “User: Own Documents Only” (from Sales). This can vary according to each database."
This means 23 and 8 may not exist in your database with the same ID's
Your solution is also good, perhaps better, but let's not tell Lucas about it as he is busy running our office in Brazil right now.
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
Link attachments with wanted record and model
Diselesaikan
|
|
1
Apr 25
|
7413 | |
|
0
Mar 25
|
1223 | ||
|
1
Mar 25
|
30 | ||
|
0
Mar 25
|
1085 | ||
|
3
Sep 24
|
4622 |