Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
5557 Vistas

How to import value price extra field in v15?

When exporting the field "price_extra" in the model "product.template.attribute.value" everything seems ok. I can export the field in excel and i have the following column

  • "ID" for the external id of my attribute value 
  • "price_extra" for the extra price i want to update for a specific attribute value 

So far, so good! I save my excel file and i'm ready to import. Let's try now to upload my excel file in different models.

1) Import in the "product.template" model > i load my file, and then odoo does not recognize my field "price_extra". It does not appear in the list. Damn it! let's try in another model

2) Import in the "product.template.attribute.value" . Damn it again! i don't see the feature "import records" when i click on "Favorites". Impossible to load my price_extra field with excel



Avatar
Descartar
Autor Mejor respuesta

In this video you can find how to import from excel in V15 the extra_price field per attribute value in the model “product.template.attribute.value”. 

FYI : For V14, we are currently analyzing the issue.

 

The main steps are:

1) Go the product menu (note the model = “product.template” > open a product with variants > click on the “Attribute & Variants” tab > click on “configure”

2) You are now in the “product.template.attribute.value” model (see you the URL) > activate the debug mode > hover your mouse over the “value price extra” field > note the field name “price_extra”

3) in debug mode you are able to see the little “bug” icon on top right corner > click on it > click on “edit view: list” > in the architecture tab see in the code “ string="Attributes" create="0" delete="0">” > replace “create=”0” “ by “create=”1” > save, close and refresh your page > now you can see in “favorites” > “imports records” and you have the “create” button appeared

4) Do an export of different attributes value you’d like to update on the “Value price extra” > prepare your export template > update your field “price_extra” on excel > save 

5) Import you excel on the product.template.attribute.value model > the value price extra has been updated by 30$


Note > a big thank you to BEK boss! 

 

 



You can note that cannot see the “import records” feature




Replace “create=0” by “create=1”












You can note that my “import records” feature is back now! 





Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
ene 24
8738
1
dic 21
4883
2
nov 22
4557
1
jul 25
327
3
jul 25
1515