I would like to add a field using odoo studio for overall discount of the quotation. I would like the discount to be an amount and not a precentage.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- 專案管理
- MRP
此問題已被標幟
2
回覆
2130
瀏覽次數
This is a feature of Odoo 17.
There is a Discount button at the bottom of the Quotation / Sales Order that gives you three options:

Hi,
To display the total discount on a quotation in Odoo, follow these steps:
- Add a Field to the Quotation Form:
- Navigate to the quotation form in Odoo.
- Click on the "Edit" button to enter edit mode.
- Add a new field to represent the total discount.
- Access Field Properties:
- Click on the newly added field.
- Click on the "More" button or the field label to access its properties.
- Navigate to Field Form:
- After accessing the field properties, you will be redirected to the field form.
- Write a Compute Function:
- In the field form, locate the field's Compute field or option.
- Write a compute function based on your requirements to calculate the total discount.
- This compute function should calculate the total discount based on the discounts applied to the quotation lines or any other relevant factors.
- You can use Python code to define the computation logic.
- Save Changes:
- Once you have written the compute function, save your changes.
- Test the Field:
- Exit edit mode and test the newly added field on the quotation form.
- Ensure that it correctly calculates and displays the total discount based on your compute function.
By following these steps, you can add a field to the quotation form in Odoo and configure it to display the total discount based on your specific requirements.
Regards
| 相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
|---|---|---|---|---|
|
|
0
3月 23
|
305 | ||
|
|
2
10月 25
|
2526 | ||
|
|
1
5月 25
|
4073 | ||
|
|
1
5月 24
|
3036 | ||
|
|
3
2月 23
|
7833 |