Hi,
In sale order line and in purchase order line when I change product quantity, product price (unit price) automatically set to 0. I am not getting why this is happening.
Could anyone help me to achieve this.
Thank you in advance!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
In sale order line and in purchase order line when I change product quantity, product price (unit price) automatically set to 0. I am not getting why this is happening.
Could anyone help me to achieve this.
Thank you in advance!
Hi bro,
You can solve this problem by following these steps:
Create a new class that inherits from purchase.order.line.
Copy and paste the code down below inside the inherited class.
Vote positif :).
The code:
@api.onchange('product_qty', 'product_uom') def _onchange_quantity(self): price = self.unit_price sup = super(purchaseOrderLine,self)._onchange_quantity() self.unit_price=price return sup
Thank you , it works for me!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
Odoo Mail Sending Limit
Đã xử lý
|
|
2
thg 12 23
|
15019 | |
|
0
thg 10 23
|
33 | ||
|
3
thg 10 23
|
790 | ||
|
1
thg 10 23
|
569 | ||
|
1
thg 8 23
|
2620 |