Reviewers: ,
Please review this at http://codereview.tryton.org/924002/
Affected files:
M CHANGELOG
M production.xml
A view/production_calendar.xml
Index: CHANGELOG
===================================================================
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,5 @@
+* Add calendar view
+
Version 2.8.0 - 2013-04-22
* Bug fixes (see mercurial logs for details)
Index: production.xml
===================================================================
--- a/production.xml
+++ b/production.xml
@@ -59,6 +59,12 @@
<field name="name">production_list</field>
</record>
+ <record model="ir.ui.view" id="production_view_calendar">
+ <field name="model">production</field>
+ <field name="type">calendar</field>
+ <field name="name">production_calendar</field>
+ </record>
+
<record model="ir.ui.view" id="production_view_form">
<field name="model">production</field>
<field name="type">form</field>
@@ -127,6 +133,26 @@
<menuitem parent="menu_production" sequence="10"
action="act_production_list" id="menu_production_list"/>
+ <record model="ir.action.act_window" id="act_production_calendar">
+ <field name="name">Productions</field>
+ <field name="res_model">production</field>
+ </record>
+ <record model="ir.action.act_window.view"
+ id="act_production_calendar_view1">
+ <field name="sequence" eval="10"/>
+ <field name="view" ref="production_view_calendar"/>
+ <field name="act_window" ref="act_production_calendar"/>
+ </record>
+ <record model="ir.action.act_window.view"
+ id="act_production_calendar_view2">
+ <field name="sequence" eval="20"/>
+ <field name="view" ref="production_view_form"/>
+ <field name="act_window" ref="act_production_calendar"/>
+ </record>
+
+ <menuitem parent="menu_production_list" sequence="10"
+ action="act_production_calendar"
id="menu_production_calendar"/>
+
<record model="ir.sequence.type" id="sequence_type_production">
<field name="name">Production</field>
<field name="code">production</field>
Index: view/production_calendar.xml
===================================================================
new file mode 100644
--- /dev/null
+++ b/view/production_calendar.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
+this repository contains the full copyright notices and license terms. -->
+<calendar string="Productions" dtstart="planned_date">
+ <field name="code"/>
+ <field name="product"/>
+ <field name="reference"/>
+</calendar>