Ir al contenido
Menú
Se marcó esta pregunta
4 Respuestas
2182 Vistas

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
Mejor respuesta

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

Mejor respuesta

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
Mejor respuesta

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

Mejor respuesta

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

Publicaciones relacionadas Respuestas Vistas Actividad
2
may 25
703
2
oct 23
2999
3
oct 23
2280
2
mar 24
2909
1
feb 22
2102