跳至内容
菜单
此问题已终结
4 回复
2172 查看

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.

形象
丢弃
最佳答案

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.

形象
丢弃

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

最佳答案

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.

 

形象
丢弃
最佳答案

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.

形象
丢弃

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

最佳答案

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

形象
丢弃

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

相关帖文 回复 查看 活动
2
5月 25
697
2
10月 23
2995
3
10月 23
2262
2
3月 24
2892
1
2月 22
2093