Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4223 มุมมอง

Hello. I'm new at odoo. I need to add a percentage field (10% or editable) to the supplier's order and create an order for this quantity.

For example

name
product_qty
discount_new
product_qty_new
product_qty_new_int
price_unit
price_subtotal
p1
10
10%
11

11

100
1100
p2
9
10
9.9
10
10
100
p3
8
10
8.8
9
20
180
p4
2
10
2.2
2
80
160

I am just create new variables in odoo

x_discount_new

x_product_qty_new

x_product_qty_new_int

How do I implement the task?

Need to calculate 

x_product_qty_new=product_qty+product_qty*discount_new/100

product_qty_new_int=int(product_qty_new)

price_subtotal=product_qty_new_int*price_unit

Thank you.

 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
importing Purchase Order shown as a RFQ แก้ไขแล้ว
2
พ.ค. 25
2174
3
ธ.ค. 24
6239
1
ก.ค. 24
3032
Purchase Product Description Incorrect แก้ไขแล้ว
1
มิ.ย. 24
2109
2
มิ.ย. 24
2991