Sale Order General Discount
sale_order_general_discount · OCA/sale-workflow
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by5/250 modules depend on it
-
Maturity25/25In 10 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.07 MB
Module directory on disk
Code analysis
0 migration notes
5 models
4 views
0 HTTP endpoints
Description
This module allows to set a general discount in a sales order. This general discount is set to each line order in the standard discount field.
You can configure:
- a default general discount on customers
- On each product define if general discount is applied
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_normal_form_view |
sale_order_general_discount.product_normal_form_view | product.product | form | Inherits product.product_normal_form_view |
product_template_only_form_view |
product.template.sale_order_general_discount.form | product.template | form | Inherits product.product_template_only_form_view |
sale_order_general_discount_form_view |
sale.order.general.discount.form | sale.order | form | Inherits sale.view_order_form |
view_partner_form |
res.partner | form | Inherits base.view_partner_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (1)
-
bypass_general_discountBooleanhelp='If this checkbox is not ticked, it means changing general discount on sale order will impact sale order lines with this related product.'
No public methods.
New fields (1)
-
bypass_general_discountBooleancompute='_compute_bypass_general_discount'help='If this checkbox is not ticked, it means changing general discount on sale order will impact sale order lines with this related product.'inverse='_inverse_bypass_general_discount'search='_search_bypass_general_discount'
No public methods.
New fields (1)
-
sale_discountFloatcompany_dependent=Truedigits='Discount'
No public methods.
New fields (1)
-
general_discountFloatcompute='_compute_general_discount'digits='Discount'readonly=Falsestore=True
-
get_view(self, view_id=None, view_type='form', **options)@api.modelThe purpose of this is to write a context on "order_line" field respecting other contexts on this field. There is a PR (https://github.com/odoo/odoo/pull/26607) to odoo for avoiding this. If merged, remove this method and add the attribute in the field.
New fields (1)
-
discountFloatcompute='_compute_discount'readonly=Falsestore=True
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…