Skip to Content
Menú
This question has been flagged
4 Respostes
2173 Vistes

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
Descartar
Best Answer

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
Descartar

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

Best Answer

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
Descartar
Best Answer

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
Descartar

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

Best Answer

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
Descartar

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):
...

Related Posts Respostes Vistes Activitat
2
de maig 25
697
2
d’oct. 23
2995
3
d’oct. 23
2263
2
de març 24
2893
1
de febr. 22
2094