Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
5318 Weergaven

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
Annuleer
Auteur Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
jan. 24
8499
1
dec. 21
4650
2
nov. 22
4320
1
aug. 24
1256
1
jun. 22
3173