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 IDNameModelTypeStatus
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_discount Monetary
    compute='_compute_amounts' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Total Global Discounts'
  • amount_total_before_global_discounts Monetary
    compute='_compute_amounts' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Amount Total Before Discounts'
  • amount_untaxed_before_global_discounts Monetary
    compute='_compute_amounts' compute_sudo=True currency_field='currency_id' readonly=True store=True string='Amount Untaxed Before Discounts'
  • global_discount_ids Many2many → global.discount
    comodel_name='global.discount' compute='_compute_global_discount_ids' domain="[('discount_scope', '=', 'sale'), ('account_id', '!=', False), '|', ('company_id', '=', company_id), ('company_id', '=', False)]" readonly=False store=True string='Sale Global Discounts'
  • global_discount_ids_readonly Many2many
    readonly=True related='global_discount_ids' string='Sale Global Discounts (readonly)'
Public methods (1)
  • 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…