Skip to Content
Menu
This question has been flagged
1 Reply
3743 Views

Hello,

I want to upload some labels together with my products but these labels aren't always the same. I want to be able to create them while importing my list. This is possible in developer mode as there is the checkbox 'Create if doesn't exist' but this checkbox is not there if not in developer mode. I want my users to use the same function. How can I change this? I want this when I am also not in developer mode.

Kind regards,

Marco

Avatar
Discard
Best Answer

Hello Marco,

You will have to remove the group - 'base.group_no_one' from the the import views.

After removing, you should the option irrespective of if you are in developer mode or not.


To do this:

You can open the import screen and then 'edit the form view' - (which can be opened from Bug icon top titlebar - in top right corner)


Update 1:

Hello Marco, I just checked code for you, this might need customization as the 'create if does not exist' block is added only if the developer mode is on!!

\https://github.com/odoo/odoo/blob/13.0/addons/base_import/static/src/xml/base_import.xml#L116

https://github.com/odoo/odoo/blob/13.0/addons/base_import/static/src/js/import_action.js#L437


Avatar
Discard
Author

Hi Deventra,
If I go to Products > Import, the option of 'Edit View: Form' is not there in the import screen. If I go find it another way through models, views and fields, neither can I find anything related to this import page. The only import I can find is Import Module, here I can indeed change or remove this group.

If I go find it through "base.group_no_one", which is "Extra Rights / Technical Features". Nothing is connected to this group that has to do with the import screen. But the problem is, IT IS connected. Somehow the Import page cannot be changed. Do you have any ideas?

Author

Hi Deventra,
I see your Update 1. I found it through this path also in my server. Thank you greatly! I won't be changing it myself but I will have it forwarded to the server developer as I am not fully capable to do the correct changes. I understand that "if (config.isDebug())" refers to the developer mode but no clue how to go from there. He will sort it out. Thanks again!

Related Posts Replies Views Activity
3
Nov 23
5995
2
Oct 23
1880
0
Sep 22
6137
2
May 21
8180
3
Nov 20
3742