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

Hi guys,


I created a product that initially had all the variants defined, and gave it a barcode. Then, realising I could build easily with variants, I adjusted the name of the product, created the variants and gave each one a specific barcode.


I'm now trying to remove the barcode from the "mother" product, and don't seem to find the place to do it. So now, I have a barcode conflict...


Imagine you had a product called iPhone X 64Gb Silver (and gave it a barcode), and then realised it would be easier to simply call the product iPhone and use as variants the model, the capacity and the color. 

I can't seem to be able to remove the barcode from this iPhone product I created.


Can anyone help me out with this?


Thank you in advance,


Luis Beires

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

Activate the developer mode and click the debugger button at the top right near logged in users name and click on Edit View form, and then in the architecture you can see the barcode field(the highlighted one in the image).



<field name="barcode" attrs="{'invisible': [('product_variant_count', '&gt;', 1)]}"/>


Remove the attrs from the field(cut and paste some where) and reload the screen, you will see barcode field, edit and change the value and reset the field to original.


Thanks

Awatar
Odrzuć
Najlepsza odpowiedź

You can also export the data in product.template (just the "External ID" and "Barcode" fields) into a xlsx/csv file, clear the barcode values in the file and import it back into Odoo.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Thank you guys!

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 15
3676
0
mar 15
3442
0
mar 15
2914
1
sie 24
8104
1
sie 24
12817