Skip to content

Commit

Permalink
Merge pull request #220 from OCA/16.0
Browse files Browse the repository at this point in the history
Syncing from upstream OCA/sale-reporting (16.0)
  • Loading branch information
bt-admin authored May 22, 2024
2 parents 68d68a5 + cf35e05 commit 5a9f65b
Show file tree
Hide file tree
Showing 17 changed files with 676 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ addon | version | maintainers | summary
[sale_order_product_recommendation_product_sold_by_delivery_week](sale_order_product_recommendation_product_sold_by_delivery_week/) | 16.0.1.1.0 | [![chienandalu](https://github.com/chienandalu.png?size=30px)](https://github.com/chienandalu) | Adds the weekly sales field to the recommendation wizard
[sale_order_report_product_image](sale_order_report_product_image/) | 16.0.1.0.0 | | Show product images on Sale documents
[sale_packaging_report](sale_packaging_report/) | 16.0.1.0.1 | [![yajo](https://github.com/yajo.png?size=30px)](https://github.com/yajo) | Packaging data in sale reports
[sale_report_commitment_date](sale_report_commitment_date/) | 16.0.1.0.0 | [![ivantodorovich](https://github.com/ivantodorovich.png?size=30px)](https://github.com/ivantodorovich) | Display the commitment date on Sales Order analysis reports
[sale_report_delivered](sale_report_delivered/) | 16.0.1.0.0 | [![sergio-teruel](https://github.com/sergio-teruel.png?size=30px)](https://github.com/sergio-teruel) | Sale Report Delivered
[sale_report_delivered_subtotal](sale_report_delivered_subtotal/) | 16.0.1.0.1 | [![sergio-teruel](https://github.com/sergio-teruel.png?size=30px)](https://github.com/sergio-teruel) | Sale Report Delivered subtotal
[sale_report_delivered_volume](sale_report_delivered_volume/) | 16.0.1.0.0 | | Sale Report Delivered Volume
Expand Down
90 changes: 90 additions & 0 deletions sale_report_commitment_date/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
===========================
Sale Report Commitment Date
===========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:bbf50e1995a99190b69592764f6dc07783b168452b47edab84570b5149226522
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--reporting-lightgray.png?logo=github
:target: https://github.com/OCA/sale-reporting/tree/16.0/sale_report_commitment_date
:alt: OCA/sale-reporting
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-reporting-16-0/sale-reporting-16-0-sale_report_commitment_date
: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/sale-reporting&target_branch=16.0
:alt: Try me on Runboat

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

Display the Sales Order commitment date on the analysis report.

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-reporting/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/sale-reporting/issues/new?body=module:%20sale_report_commitment_date%0Aversion:%2016.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
~~~~~~~

* Camptocamp

Contributors
~~~~~~~~~~~~

* `Camptocamp <https://www.camptocamp.com>`_

* Iván Todorovich <[email protected]>

* `Akretion <https://www.akretion.com>`_

* Kevin Khao <[email protected]>

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-ivantodorovich| image:: https://github.com/ivantodorovich.png?size=40px
:target: https://github.com/ivantodorovich
:alt: ivantodorovich

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

|maintainer-ivantodorovich|

This module is part of the `OCA/sale-reporting <https://github.com/OCA/sale-reporting/tree/16.0/sale_report_commitment_date>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions sale_report_commitment_date/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import reports
16 changes: 16 additions & 0 deletions sale_report_commitment_date/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2022 Camptocamp SA (https://www.camptocamp.com).
# @author Iván Todorovich <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Sale Report Commitment Date",
"summary": "Display the commitment date on Sales Order analysis reports",
"version": "16.0.1.0.0",
"author": "Camptocamp, Odoo Community Association (OCA)",
"maintainers": ["ivantodorovich"],
"website": "https://github.com/OCA/sale-reporting",
"license": "AGPL-3",
"category": "Sales",
"depends": ["sale"],
"data": ["reports/sale_report.xml"],
}
43 changes: 43 additions & 0 deletions sale_report_commitment_date/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_report_commitment_date
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-06-09 19:43+0000\n"
"PO-Revision-Date: 2022-06-09 19:43+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: sale_report_commitment_date
#: model:ir.model.fields,field_description:sale_report_commitment_date.field_sale_report__commitment_date
#: model_terms:ir.ui.view,arch_db:sale_report_commitment_date.view_order_product_search
msgid "Commitment Date"
msgstr "Date d'engagement"

#. module: sale_report_commitment_date
#: model:ir.model.fields,field_description:sale_report_commitment_date.field_sale_report__display_name
msgid "Display Name"
msgstr "Nom affiché"

#. module: sale_report_commitment_date
#: model:ir.model.fields,field_description:sale_report_commitment_date.field_sale_report__id
msgid "ID"
msgstr ""

#. module: sale_report_commitment_date
#: model:ir.model.fields,field_description:sale_report_commitment_date.field_sale_report____last_update
msgid "Last Modified on"
msgstr "Dernière modification le"

#. module: sale_report_commitment_date
#: model:ir.model,name:sale_report_commitment_date.model_sale_report
msgid "Sales Analysis Report"
msgstr "Rapport d'analyse des ventes"
25 changes: 25 additions & 0 deletions sale_report_commitment_date/i18n/sale_report_commitment_date.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_report_commitment_date
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: sale_report_commitment_date
#: model:ir.model.fields,field_description:sale_report_commitment_date.field_sale_report__commitment_date
#: model_terms:ir.ui.view,arch_db:sale_report_commitment_date.view_order_product_search
msgid "Commitment Date"
msgstr ""

#. module: sale_report_commitment_date
#: model:ir.model,name:sale_report_commitment_date.model_sale_report
msgid "Sales Analysis Report"
msgstr ""
7 changes: 7 additions & 0 deletions sale_report_commitment_date/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
* `Camptocamp <https://www.camptocamp.com>`_

* Iván Todorovich <[email protected]>

* `Akretion <https://www.akretion.com>`_

* Kevin Khao <[email protected]>
1 change: 1 addition & 0 deletions sale_report_commitment_date/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Display the Sales Order commitment date on the analysis report.
1 change: 1 addition & 0 deletions sale_report_commitment_date/reports/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import sale_report
21 changes: 21 additions & 0 deletions sale_report_commitment_date/reports/sale_report.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2022 Camptocamp SA (https://www.camptocamp.com).
# @author Iván Todorovich <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


class SaleReport(models.Model):
_inherit = "sale.report"

commitment_date = fields.Datetime(readonly=True)

def _select_sale(self):
res = super()._select_sale()
res += ", s.commitment_date"
return res

def _group_by_sale(self):
res = super()._group_by_sale()
res += ", s.commitment_date"
return res
31 changes: 31 additions & 0 deletions sale_report_commitment_date/reports/sale_report.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2022 Camptocamp SA (https://www.camptocamp.com).
@author Iván Todorovich <[email protected]>
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
-->
<odoo>

<record id="view_order_product_search" model="ir.ui.view">
<field name="model">sale.report</field>
<field name="inherit_id" ref="sale.view_order_product_search" />
<field name="priority" eval="50" />
<field name="arch" type="xml">
<filter name="filter_date" position="after">
<filter
name="filter_commitment_date"
date="commitment_date"
default_period="this_month"
/>
</filter>
<filter name="date" position="after">
<filter
string="Commitment Date"
name="commitment_date"
context="{'group_by': 'commitment_date'}"
/>
</filter>
</field>
</record>

</odoo>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5a9f65b

Please sign in to comment.