forked from OCA/sale-reporting
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #272 from OCA/16.0
Syncing from upstream OCA/sale-reporting (16.0)
- Loading branch information
Showing
22 changed files
with
946 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
======================================== | ||
Sale Report Delivered - Attribute Values | ||
======================================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:4cb5dc130361ca6e54aa14bba4bac0f724eb73b7771edc8e832d51d0179907d8 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Alpha | ||
.. |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_delivered_attribute_values | ||
: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_delivered_attribute_values | ||
: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| | ||
|
||
This module extends the functionality of Sale Report Delivered to | ||
support view Attribute Values and to allow you to have a better view of | ||
Deliveries. | ||
|
||
.. IMPORTANT:: | ||
This is an alpha version, the data model and design can change at any time without warning. | ||
Only for development or testing purpose, do not use in production. | ||
`More details on development status <https://odoo-community.org/page/development-status>`_ | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Use Cases / Context | ||
=================== | ||
|
||
This module was developed because we want to show Attribute Values on | ||
Sale Report Delivered report. | ||
|
||
It will be useful for you if want to analyize information of your | ||
Attribute Values. | ||
|
||
Usage | ||
===== | ||
|
||
To use this module, you need to: | ||
|
||
1. Go to Sales and create and send products with Attribute Values | ||
2. Go to Sale Delivered Report | ||
3. Check Attribute Values can be filtered and grouped | ||
4. Check Attributes can be filtered | ||
|
||
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_delivered_attribute_values%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 | ||
------- | ||
|
||
* Moduon | ||
|
||
Contributors | ||
------------ | ||
|
||
- Eduardo de Miguel (`Moduon <https://www.moduon.team/>`__) | ||
|
||
Other credits | ||
------------- | ||
|
||
The development of this module has been financially supported by: | ||
|
||
- Comercial Ulzama | ||
|
||
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-Shide| image:: https://github.com/Shide.png?size=40px | ||
:target: https://github.com/Shide | ||
:alt: Shide | ||
.. |maintainer-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px | ||
:target: https://github.com/rafaelbn | ||
:alt: rafaelbn | ||
|
||
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-Shide| |maintainer-rafaelbn| | ||
|
||
This module is part of the `OCA/sale-reporting <https://github.com/OCA/sale-reporting/tree/16.0/sale_report_delivered_attribute_values>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright 2025 Moduon Team S.L. | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) | ||
|
||
{ | ||
"name": "Sale Report Delivered - Attribute Values", | ||
"summary": "Allow to view Attribute values of Lines on Sale Report Delivered", | ||
"version": "16.0.1.0.1", | ||
"development_status": "Alpha", | ||
"category": "Sales", | ||
"website": "https://github.com/OCA/sale-reporting", | ||
"author": "Moduon, Odoo Community Association (OCA)", | ||
"maintainers": ["Shide", "rafaelbn"], | ||
"license": "AGPL-3", | ||
"application": False, | ||
"installable": True, | ||
"auto_install": True, | ||
"depends": [ | ||
"sale_report_delivered", | ||
"sale_order_line_product_attribute_values", | ||
], | ||
"data": [ | ||
"views/sale_report_delivered_views.xml", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * sale_report_delivered_attribute_values | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2025-02-14 12:17+0000\n" | ||
"PO-Revision-Date: 2025-02-14 13:18+0100\n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"Language: es\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
"X-Generator: Poedit 3.4.4\n" | ||
|
||
#. module: sale_report_delivered_attribute_values | ||
#: model:ir.model.fields,help:sale_report_delivered_attribute_values.field_sale_report_delivered__all_product_attribute_value_ids | ||
msgid "" | ||
"All Product Attribute Values used directly or indirecly for this line.\n" | ||
"Contains information about increased price, html color, etc." | ||
msgstr "" | ||
"Todos los Valores de Atributos de Producto utilizados directamente o " | ||
"indirectamente en esta línea.\n" | ||
"Contiene información sobre el incremento de precio, color html, etc." | ||
|
||
#. module: sale_report_delivered_attribute_values | ||
#: model_terms:ir.ui.view,arch_db:sale_report_delivered_attribute_values.view_sale_report_delivered_search | ||
msgid "Attribue Value" | ||
msgstr "Valor de atributo" | ||
|
||
#. module: sale_report_delivered_attribute_values | ||
#: model_terms:ir.ui.view,arch_db:sale_report_delivered_attribute_values.view_sale_report_delivered_search | ||
msgid "Attribute" | ||
msgstr "Atributo" | ||
|
||
#. module: sale_report_delivered_attribute_values | ||
#: model:ir.model.fields,field_description:sale_report_delivered_attribute_values.field_sale_report_delivered__all_product_attribute_value_ids | ||
#: model_terms:ir.ui.view,arch_db:sale_report_delivered_attribute_values.view_sale_report_delivered_search | ||
msgid "Attribute Values" | ||
msgstr "Valores de atributo" | ||
|
||
#. module: sale_report_delivered_attribute_values | ||
#: model:ir.model.fields,field_description:sale_report_delivered_attribute_values.field_sale_report_delivered__sale_line_id | ||
msgid "Sale Line" | ||
msgstr "Línea de venta" | ||
|
||
#. module: sale_report_delivered_attribute_values | ||
#: model:ir.model,name:sale_report_delivered_attribute_values.model_sale_report_delivered | ||
msgid "Sales Delivered Analysis Report" | ||
msgstr "Análisis de ventas" |
47 changes: 47 additions & 0 deletions
47
sale_report_delivered_attribute_values/i18n/sale_report_delivered_attribute_values.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * sale_report_delivered_attribute_values | ||
# | ||
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_delivered_attribute_values | ||
#: model:ir.model.fields,help:sale_report_delivered_attribute_values.field_sale_report_delivered__all_product_attribute_value_ids | ||
msgid "" | ||
"All Product Attribute Values used directly or indirecly for this line.\n" | ||
"Contains information about increased price, html color, etc." | ||
msgstr "" | ||
|
||
#. module: sale_report_delivered_attribute_values | ||
#: model_terms:ir.ui.view,arch_db:sale_report_delivered_attribute_values.view_sale_report_delivered_search | ||
msgid "Attribue Value" | ||
msgstr "" | ||
|
||
#. module: sale_report_delivered_attribute_values | ||
#: model_terms:ir.ui.view,arch_db:sale_report_delivered_attribute_values.view_sale_report_delivered_search | ||
msgid "Attribute" | ||
msgstr "" | ||
|
||
#. module: sale_report_delivered_attribute_values | ||
#: model:ir.model.fields,field_description:sale_report_delivered_attribute_values.field_sale_report_delivered__all_product_attribute_value_ids | ||
#: model_terms:ir.ui.view,arch_db:sale_report_delivered_attribute_values.view_sale_report_delivered_search | ||
msgid "Attribute Values" | ||
msgstr "" | ||
|
||
#. module: sale_report_delivered_attribute_values | ||
#: model:ir.model.fields,field_description:sale_report_delivered_attribute_values.field_sale_report_delivered__sale_line_id | ||
msgid "Sale Line" | ||
msgstr "" | ||
|
||
#. module: sale_report_delivered_attribute_values | ||
#: model:ir.model,name:sale_report_delivered_attribute_values.model_sale_report_delivered | ||
msgid "Sales Delivered Analysis Report" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
This module was developed because we want to show Attribute Values on Sale Report Delivered report. | ||
|
||
It will be useful for you if want to analyize information of your Attribute Values. |
2 changes: 2 additions & 0 deletions
2
sale_report_delivered_attribute_values/readme/CONTRIBUTORS.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Eduardo de Miguel ([Moduon](https://www.moduon.team/)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
The development of this module has been financially supported by: | ||
|
||
- Comercial Ulzama |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This module extends the functionality of Sale Report Delivered to support view Attribute Values and to allow you to have a better view of Deliveries. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
To use this module, you need to: | ||
|
||
1. Go to Sales and create and send products with Attribute Values | ||
2. Go to Sale Delivered Report | ||
3. Check Attribute Values can be filtered and grouped | ||
4. Check Attributes can be filtered |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import sale_report |
36 changes: 36 additions & 0 deletions
36
sale_report_delivered_attribute_values/report/sale_report.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Copyright 2025 Moduon Team S.L. | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class SaleReportDelivered(models.Model): | ||
_inherit = "sale.report.delivered" | ||
|
||
sale_line_id = fields.Many2one( | ||
comodel_name="sale.order.line", | ||
readonly=True, | ||
) | ||
|
||
# This table is not generated here because we are using the original table | ||
# since the id of this report is the id of the sale order line | ||
all_product_attribute_value_ids = fields.Many2many( | ||
related="sale_line_id.all_product_attribute_value_ids", | ||
relation="sale_order_line_all_product_attribute_value_rel", | ||
column1="sale_order_line_id", | ||
column2="product_attribute_value_id", | ||
readonly=True, | ||
store=True, # To allow grouping by this field | ||
) | ||
|
||
def _select(self): | ||
"""Add sale order line to the select query""" | ||
res = super()._select() | ||
res += ", sub.id as sale_line_id" | ||
return res | ||
|
||
def _group_by(self): | ||
"""Add sale order line to the group by query""" | ||
res = super()._group_by() | ||
res += ", sub.id" | ||
return res |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.