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:
- CRM
- e-Commerce
- Účtovníctvo
- Sklady
- PoS
- Projektové riadenie
- MRP
This question has been flagged
2
Replies
2123
Zobrazenia
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrácia| Related Posts | Replies | Zobrazenia | Aktivita | |
|---|---|---|---|---|
|
|
0
mar 23
|
305 | ||
|
|
2
okt 25
|
2521 | ||
|
|
1
máj 25
|
4068 | ||
|
|
1
máj 24
|
3036 | ||
|
|
3
feb 23
|
7832 |