Repository
OCA/purchase-workflow · module folder · Try on Runboat
Module version
1.0.0
Category
Purchases
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/purchase-workflow
Last tracking update
2026-08-07 09:06:27
Authors
Odoo Community Association (OCA), Tecnativa
Maintainers
Odoo Community Association (OCA), Tecnativa
Committers
Weblate, OCA-git-bot, oca-ci, Antoni Marroig Campomar
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module allows to set a general discount in a purchase order. This
general discount is applied to each line order.

You can also set a default general discount on suppliers and configure
to which line field the discount will be applied.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
purchase_order_form purchase.order form Inherits purchase.purchase_order_form
res_config_settings_view_form_purchase res.config.settings.view.form.inherit.purchase res.config.settings form Inherits purchase.res_config_settings_view_form_purchase
res_partner_form_view res.partner form Inherits base.view_partner_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (1)
  • general_discount Float
    digits='Discount' string='Gen. Disc. (%)'
Public methods (3)
  • action_update_general_discount(self)
  • onchange_general_discount(self)
    @api.onchange('general_discount')
  • onchange_partner_id(self)
    @api.onchange('partner_id')

New fields (1)
  • purchase_general_discount_field Selection
    default='discount' help='Set the purchase line discount field in which the discounts will be applied.' selection='_get_purchase_discount_fields' string='Purchase Discount Field'
Public methods (0)

No public methods.

New fields (1)
  • purchase_general_discount_field Selection
    readonly=False related='company_id.purchase_general_discount_field'
Public methods (0)

No public methods.

New fields (1)
  • purchase_general_discount Float
    company_dependent=True digits='Discount' string='Purchase General Discount (%)'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…