تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
9747 أدوات العرض

hello community i want to get the product price based on the current selected pricelist in the sale.order i try to modify the name_search method of the product.py but i cant get it working any help will be appreciated . thanks in advance

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

here is a screenshot : farm9.staticflickr.com/8269/8703512253_59431df303_b.jpg

الصورة الرمزية
إهمال
أفضل إجابة

Can you explain a bit more what you want? Because in openERP V7, you can select a default pricelist for a customer, or change the pricelist when starting with a sale-order.

There are various questions around which talk about the same questions. Sometimes they want to see the original price of the product and the discount (if that is given), than you have to create your own module, extend sale.order and/or product.pricelist in order to get these values.

الصورة الرمزية
إهمال
الكاتب

sorry for the late , so i want to add the product price in the invoice line based on the selected pricelist i modified the name_search() function in product.py to return the product price but i want to get the price based on the pricelist :) here is a screenshot : farm9.staticflickr.com/8269/8703512253_59431df303_b.jpg

I cannot see the picture, but given your answer, you want to get the (original) price of the produc, based on the pricelist? To get this to work, you have to create a new module, extend sale.order.line (method on_change_product) and extend product.pricelist (create new method get_price_product; flow should be like product_pricelist.price_get_multi). I am working on a solution like this, and others have done that as well.

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مارس 15
4162
1
مارس 24
2489
2
يناير 21
3197
1
يناير 20
3418
0
فبراير 17
6133