Skip to Content
Menu
This question has been flagged
5 Replies
1759 Views

This year when the work from home started, the salespeople used their tablets more often from home.  Their internet connection at home was not the best quality and they complained about how slow the system was and how it got stuck sometimes.  All of a sudden there were new products and customers created with blank or missing information erroneously created by them.  I assume when they were creating an SO, they would fill in the name and because it took so long to fill in the data they accidentally hit Create New Product/Customer.

I decided to limit their ability to create new customers and products since they are not allowed to create them anyway.  Products are created by the purchasing manager user and customers are created by the sales manager user.

The IT firm that services us made some mods and they were indeed restricted from creating those items but there are 2 issues, one more important than the other;

1. They are unable to see the full data on the product card.  Before they could see sales, purchases, forecast qty, on hand qty etc as little boxes on the top right of the product form but now those are gone.

2. They are unable to see each other's SO's and sometimes they need to in order to help each other out if one of them is unable to connect to the system to make a change to their existing SO. [this is minor]


How can I check to see if I can give them access to those boxes on the product card without them being able to create a new product?

Avatar
Discard
Best Answer

It's quite simple to block this without limiting what users can view.

You can create an Extension View to prevent users creating products from a Quotation.  The syntax should be like this, but it does vary by version of Odoo:

</data>    
<xpath expr="//field[@name='product_template_id']" position="attributes">
     <attribute name="options">{"no_create":true}</attribute>
</data>

More information: Prevent users creating products "on the fly"

Note: this does vary depending upon the version of Odoo you are using, but the basic principle is the same.  

Avatar
Discard
Author

Ok Ill try this. As for that restriction they put in, as for reverting it, Im guessing its just the change in salespeople user groups right?

Author

ok but its normal then for a salesperson to be a Inventory > User, right?

Yes, that's normal.

Author

ok thanks, one last thing. Where do I paste that code into?

You need to create an Extension View. There's an example with step-by-step instructions here: https://odootricks.tips/access-button/#manual

Author

ok i know where views are, Settings, User Interface and I need to edit a view, but which one? Or do I create a Customized View?

Author

Can anyone else help me know where I have to go in order to add the code to the correct form? Thanks

Related Posts Replies Views Activity
1
Jul 24
211
3
Aug 24
2826
2
Jul 24
356
1
Apr 24
30
3
Apr 24
567