TIP: You can type at any time to perform a new search.
Sale Global Discount
sale_global_discount · OCA/sale-workflow
- Repository
- OCA/sale-workflow · module folder · Try on Runboat
- Module version
- 1.0.1
- Category
- Sales Management
- Folder size
- 0.12 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/sale-workflow
- Last tracking update
- 2026-08-07 09:06:23
- Authors
- Odoo Community Association (OCA), Tecnativa
- Maintainers
- Odoo Community Association (OCA), Tecnativa
- Committers
- OCA-git-bot, oca-ci, adrip-s73, arantxa-s73
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
Apply global financial discounts to sales that will be transmited to invoices and accounting.
Code Analysis ⓘ
Views touched (2)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
report_saleorder_document |
report_saleorder_document | ir.ui.view | qweb | Inherits sale.report_saleorder_document |
view_order_form |
sale.order | form | Inherits sale.view_order_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (3)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (5)
-
amount_global_discountMonetarycompute='_compute_amounts'compute_sudo=Truecurrency_field='currency_id'readonly=Truestore=Truestring='Total Global Discounts' -
amount_total_before_global_discountsMonetarycompute='_compute_amounts'compute_sudo=Truecurrency_field='currency_id'readonly=Truestore=Truestring='Amount Total Before Discounts' -
amount_untaxed_before_global_discountsMonetarycompute='_compute_amounts'compute_sudo=Truecurrency_field='currency_id'readonly=Truestore=Truestring='Amount Untaxed Before Discounts' -
global_discount_idsMany2many → global.discountcomodel_name='global.discount'compute='_compute_global_discount_ids'domain="[('discount_scope', '=', 'sale'), ('account_id', '!=', False), '|', ('company_id', '=', company_id), ('company_id', '=', False)]"readonly=Falsestore=Truestring='Sale Global Discounts' -
global_discount_ids_readonlyMany2manyreadonly=Truerelated='global_discount_ids'string='Sale Global Discounts (readonly)'
-
get_discounted_global(self, price=0, discounts=None)@api.model
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…