Skip to content

Commit

Permalink
TA#72148 [16.0][MIG] product_extra_views
Browse files Browse the repository at this point in the history
  • Loading branch information
lanto-razafindrabe committed Dec 12, 2024
1 parent c072f48 commit ce2ae37
Show file tree
Hide file tree
Showing 11 changed files with 125 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .docker_files/main/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"category": "Other",
"summary": "Install all addons required for testing.",
"depends": [
"product",
"product_extra_views",
],
"installable": True,
}
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ RUN gitoo install-all --conf_file /gitoo.yml --destination "${THIRD_PARTY_ADDONS

USER odoo

COPY product_extra_views /mnt/extra-addons/product_extra_views

COPY .docker_files/main /mnt/extra-addons/main
COPY .docker_files/odoo.conf /etc/odoo
15 changes: 15 additions & 0 deletions product_extra_views/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Product Extra Views
===================
This module adds a pivot and a graph view to product variants and product templates.

.. image:: static/description/pivot_view.png

.. image:: static/description/graph_view.png

Contributors
------------
* Numigi (tm) and all its contributors (https://bit.ly/numigiens)

More information
----------------
* Meet us at https://bit.ly/numigi-com
2 changes: 2 additions & 0 deletions product_extra_views/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright 2022 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
21 changes: 21 additions & 0 deletions product_extra_views/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2022 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{

Check warning on line 4 in product_extra_views/__manifest__.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

product_extra_views/__manifest__.py#L4

Statement seems to have no effect
'name': 'Product Extra Views',
'version': "16.0.1.0.0",
'author': 'Numigi',
'maintainer': 'Numigi',
'website': 'https://bit.ly/numigi-com',
'license': 'LGPL-3',
'category': 'Product',
'summary': 'Add pivot and graph views to products',
'depends': [
'product',
],
'data': [
'views/product_template.xml',
'views/product_product.xml',
],
'installable': True,
}
28 changes: 28 additions & 0 deletions product_extra_views/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_extra_views
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-28 20:11+0000\n"
"PO-Revision-Date: 2019-08-28 20:11+0000\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: product_extra_views
#: model_terms:ir.ui.view,arch_db:product_extra_views.product_variant_graph_view
#: model_terms:ir.ui.view,arch_db:product_extra_views.product_variant_pivot_view
msgid "Product Variants"
msgstr "Variantes d'article"

#. module: product_extra_views
#: model_terms:ir.ui.view,arch_db:product_extra_views.product_template_graph_view
#: model_terms:ir.ui.view,arch_db:product_extra_views.product_template_pivot_view
msgid "Products"
msgstr "Articles"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added product_extra_views/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions product_extra_views/views/product_product.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<record id="product_variant_pivot_view" model="ir.ui.view">
<field name="name">Product Variant Pivot</field>
<field name="model">product.product</field>
<field name="arch" type="xml">
<pivot string="Product Variants" display_quantity="True" />
</field>
</record>

<record id="product_variant_graph_view" model="ir.ui.view">
<field name="name">Product Variant Graph</field>
<field name="model">product.product</field>
<field name="arch" type="xml">
<graph string="Product Variants" />
</field>
</record>

<record id="product.product_variant_action" model="ir.actions.act_window">
<field name="view_mode">tree,kanban,form,activity,pivot,graph</field>
</record>

<record id="product.product_normal_action" model="ir.actions.act_window">
<field name="view_mode">tree,form,kanban,activity,pivot,graph</field>
</record>

<record id="product.product_normal_action_sell" model="ir.actions.act_window">
<field name="view_mode">kanban,tree,form,activity,pivot,graph</field>
</record>

</odoo>
24 changes: 24 additions & 0 deletions product_extra_views/views/product_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<record id="product_template_pivot_view" model="ir.ui.view">
<field name="name">Product Template Pivot</field>
<field name="model">product.template</field>
<field name="arch" type="xml">
<pivot string="Products" display_quantity="True" />
</field>
</record>

<record id="product_template_graph_view" model="ir.ui.view">
<field name="name">Product Template Graph</field>
<field name="model">product.template</field>
<field name="arch" type="xml">
<graph string="Products" />
</field>
</record>

<record id="product.product_template_action" model="ir.actions.act_window">
<field name="view_mode">kanban,tree,form,pivot,graph</field>
</record>

</odoo>

0 comments on commit ce2ae37

Please sign in to comment.