[11.0] stock_demand_estimate: add simple pivot view

This commit is contained in:
Lois Rilo
2018-06-21 12:10:12 +02:00
committed by davidborromeo
parent 6ce7dc7854
commit fb8beffb36
3 changed files with 59 additions and 46 deletions

View File

@@ -1,5 +1,5 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.png .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
===================== =====================
@@ -57,6 +57,7 @@ Contributors
------------ ------------
* Jordi Ballester Alomar <jordi.ballester@eficent.com> * Jordi Ballester Alomar <jordi.ballester@eficent.com>
* Lois Rilo <lois.rilo@eficent.com>
Maintainer Maintainer
---------- ----------

View File

@@ -4,7 +4,7 @@
{ {
"name": "Stock Demand Estimate", "name": "Stock Demand Estimate",
"summary": "Allows to create demand estimates.", "summary": "Allows to create demand estimates.",
"version": "11.0.1.1.0", "version": "11.0.1.2.0",
"author": "Eficent, " "author": "Eficent, "
"Odoo Community Association (OCA)", "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse", "website": "https://github.com/OCA/stock-logistics-warehouse",

View File

@@ -18,6 +18,18 @@
</field> </field>
</record> </record>
<record id="view_stock_demand_estimate_pivot" model="ir.ui.view">
<field name="name">stock.demand.estimate.pivot</field>
<field name="model">stock.demand.estimate</field>
<field name="arch" type="xml">
<pivot string="Stock Demand Estimate">
<field name="product_qty" type="measure"/>
<field name="product_id" type="row"/>
<field name="date_range_id" type="col"/>
</pivot>
</field>
</record>
<record id="view_stock_demand_estimate_search" <record id="view_stock_demand_estimate_search"
model="ir.ui.view"> model="ir.ui.view">
<field name="name">stock.demand.estimate.search</field> <field name="name">stock.demand.estimate.search</field>
@@ -37,7 +49,7 @@
<field name="type">ir.actions.act_window</field> <field name="type">ir.actions.act_window</field>
<field name="res_model">stock.demand.estimate</field> <field name="res_model">stock.demand.estimate</field>
<field name="view_type">form</field> <field name="view_type">form</field>
<field name="view_mode">tree,form</field> <field name="view_mode">tree,pivot</field>
<field name="search_view_id" <field name="search_view_id"
ref="view_stock_demand_estimate_search"/> ref="view_stock_demand_estimate_search"/>
</record> </record>