Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5122 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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


Awatar
Odrzuć
Autor

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?

Autor

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!

Powiązane posty Odpowiedzi Widoki Czynność
3
lis 23
7255
2
paź 23
3277
0
wrz 22
7141
2
maj 21
10930
3
lis 20
4849