Metadata-Version: 2.1
Name: odoo-addon-account_invoice_start_end_dates_default
Version: 18.0.1.0.0.4
Requires-Python: >=3.10
Requires-Dist: odoo-addon-account_invoice_start_end_dates==18.0.*
Requires-Dist: odoo==18.0.*
Summary: Invoice date as default start/end dates of the invoice lines
Home-page: https://github.com/OCA/account-closing
License: LGPL-3
Author: Lorenzo Battistini,Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 18.0
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Description-Content-Type: text/x-rst

=======================================
Account Invoice Start End Dates Default
=======================================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:e828a6cf573cff1e0010444fabb1a7eb03a76980fb2c78877c7be030ab77ffd9
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
    :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
    :alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--closing-lightgray.png?logo=github
    :target: https://github.com/OCA/account-closing/tree/18.0/account_invoice_start_end_dates_default
    :alt: OCA/account-closing
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/account-closing-18-0/account-closing-18-0-account_invoice_start_end_dates_default
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/account-closing&target_branch=18.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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.

**Table of contents**

.. contents::
   :local:

Configuration
=============

To use the invoice date as default Start Date and End Date of the
invoice lines, go to *Invoicing > Configuration > Settings* and enable:

-  *Default Start/End Dates from Bill Date*, in the *Vendor Bills*
   section, for vendor bills and refunds;
-  *Default Start/End Dates from Invoice Date*, in the *Customer
   Invoices* section, for customer invoices and refunds.

When the invoice date is set, the invoice lines that don't have a Start
Date and an End Date get the invoice date as Start Date and End Date. On
customer invoices, the invoice date is often left empty until the
invoice is posted: the lines get it at that moment. The dates already
set on a line are never overwritten, so you can still enter another
period on the lines that need it. The lines whose product has the option
*Must Have Start/End Dates* get the invoice date too.

When an invoice is duplicated, or a vendor bill is filled from a
previous one with the *Auto-Complete* field, the lines of the new
invoice get its invoice date, not the dates of the original lines.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-closing/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-closing/issues/new?body=module:%20account_invoice_start_end_dates_default%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Lorenzo Battistini

Contributors
------------

-  Lorenzo Battistini

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-eLBati| image:: https://github.com/eLBati.png?size=40px
    :target: https://github.com/eLBati
    :alt: eLBati

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-eLBati| 

This module is part of the `OCA/account-closing <https://github.com/OCA/account-closing/tree/18.0/account_invoice_start_end_dates_default>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
