Skip to content
Health
75/100
good
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 10 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 9 Odoo series since 11.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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 4 models 3 views 0 HTTP endpoints

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.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…

Loading…