Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 18.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
LGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis 0 migration notes 4 models 1 view 0 HTTP endpoints

Description

This module adds two company options, in the Vendor Bills and Customer Invoices sections of the settings, to use the invoice date as default Start Date and End Date of the lines of vendor bills and of customer invoices.

The lines without dates are ignored by the cut-offs based on start/end dates: with these options, the product lines that have no dates get the invoice date as soon as it is set, so that the dates only have to be entered on the lines that refer to another period. The dates already set on a line are never overwritten.

The dates refer to the period of the invoice/move: when an invoice/move is duplicated, the lines of the copy don't get the dates of the original lines. The lines of a credit note keep the dates of the reversed invoice.

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 1

XML IDNameModelTypeStatus
res_config_settings_view_form start_end_dates_default.res.config.settings.form res.config.settings form Inherits account.res_config_settings_view_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 4

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • end_date Date
    compute='_compute_start_end_dates' copy=False precompute=True readonly=False store=True
  • start_date Date
    compute='_compute_start_end_dates' copy=False precompute=True readonly=False store=True
Public methods (0)

No public methods.

New fields (2)
  • start_end_dates_from_bill_date Boolean
    help="If enabled, the lines of vendor bills and refunds that don't have a Start Date and an End Date get the bill date as Start Date and End Date." string='Default Start/End Dates from Bill Date'
  • start_end_dates_from_invoice_date Boolean
    help="If enabled, the lines of customer invoices and refunds that don't have a Start Date and an End Date get the invoice date as Start Date and End Date." string='Default Start/End Dates from Invoice Date'
Public methods (0)

No public methods.

New fields (2)
  • start_end_dates_from_bill_date Boolean
    readonly=False related='company_id.start_end_dates_from_bill_date'
  • start_end_dates_from_invoice_date Boolean
    readonly=False related='company_id.start_end_dates_from_invoice_date'
Public methods (0)

No public methods.