Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
4 Antwoorden
2178 Weergaven

Hi,


I'm trying to import invoices in Odoo 15.

All works fine except for the product price. The price must be set into the import file but I want the default product price to be set automatically. I think Odoo should be able to retrieve the product price from the product itself without specifying it in that file?


Thanks for assistance.

Avatar
Annuleer
Beste antwoord

If you are a programmer, you can override Odoo's create and write functions to handle changing product prices if you change the product. You can set the value of the Price field in the import file to -1 to distinguish it from cases where you do not want to get the price from the price list.

Avatar
Annuleer

Thank you. This is a great way

HI Tuan,

I am facing similar issue, I want to upload invoice with the prices on excel sheet - But default it selects the Standard pricelist from Odoo.

What would be the name of the column with -1 value?

Thanks
Fahim

Beste antwoord

Ensure your import file (e.g., CSV or Excel) includes the necessary columns like Invoice Date, Customer, Product, Quantity, etc.

Do not include the Price column if you want Odoo to automatically fetch the default product price.

 

Avatar
Annuleer
Beste antwoord

The default Odoo import functionality might not have automatic price retrieval built-in. If the above suggestions don't work, consider searching for Odoo modules specifically designed for invoice import. Some modules might offer features like automatic price assignment.

Avatar
Annuleer

With pricing rules, you can define conditions and actions that determine the price of a product based on various criteria such as customer, quantity, or date. By creating appropriate pricing rules, you can let Odoo automatically calculate the price during the invoice import process, reducing the need for manual input. https://basketballrandom.com

Beste antwoord

HI Tuan, 

I am facing similar issue, I want to upload invoice with the prices on excel sheet - But default it selects the Standard pricelist from Odoo.


What would be the name of the column with -1 value?

Thanks
Fahim

Avatar
Annuleer

Hi Fahim,

I also use the price_unit field like Odoo. However, I write the value of this column in Excel as -1 and the value will be recalculated correctly through Odoo's create and write overrides.

To override this function you need programming knowledge such as:
def create(self, vals):
if vals.get('price_unit',-1):
...

Gerelateerde posts Antwoorden Weergaven Activiteit
2
mei 25
700
2
okt. 23
2999
3
okt. 23
2274
2
mrt. 24
2899
1
feb. 22
2097