2008-07-01 15:58:58 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2008-09-10 17:56:00 +00:00
|
|
|
<openerp>
|
2008-06-29 08:26:07 +00:00
|
|
|
<data>
|
2010-06-17 12:16:52 +00:00
|
|
|
<menuitem icon="STOCK_PREFERENCES" id="base.menu_tools" name="Tools" sequence="28"/>
|
2010-06-17 13:44:20 +00:00
|
|
|
<menuitem id="next_id_45" name="Recurring Events" parent="base.menu_tools" sequence="4"/>
|
2010-04-16 09:16:25 +00:00
|
|
|
|
2008-06-29 08:26:07 +00:00
|
|
|
<!--
|
2010-04-16 09:16:25 +00:00
|
|
|
=======================================================
|
|
|
|
Subscription Views
|
|
|
|
=======================================================
|
|
|
|
-->
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="view_subscription_form" model="ir.ui.view">
|
|
|
|
<field name="name">subscription.subscription.form</field>
|
|
|
|
<field name="model">subscription.subscription</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Subscriptions">
|
2008-10-24 15:47:03 +00:00
|
|
|
<group colspan="4">
|
|
|
|
<field name="name" select="1"/>
|
2010-04-16 09:16:25 +00:00
|
|
|
<field name="active" select="1" groups="base.group_extended"/>
|
2008-10-24 15:47:03 +00:00
|
|
|
<field name="user_id" select="1"/>
|
|
|
|
<field name="partner_id" select="1"/>
|
|
|
|
</group>
|
|
|
|
<notebook colspan="4">
|
2008-07-01 15:58:58 +00:00
|
|
|
<page string="Subsription Data">
|
2008-06-29 08:26:07 +00:00
|
|
|
<newline/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="interval_number"/>
|
|
|
|
<field name="interval_type"/>
|
|
|
|
<field name="exec_init"/>
|
|
|
|
<field name="date_init"/>
|
|
|
|
<field colspan="4" name="doc_source" widget="reference"/>
|
2010-07-12 12:05:00 +00:00
|
|
|
<separator string="Notes" colspan="4"/>
|
|
|
|
<field colspan="4" name="notes" nolabel="1"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<separator colspan="4"/>
|
|
|
|
<field colspan="4" name="cron_id" readonly="1"/>
|
|
|
|
<field name="state" readonly="1"/>
|
|
|
|
<group col="3" colspan="2">
|
2009-09-24 10:46:21 +00:00
|
|
|
<button name="set_process" states="draft" string="Process" type="object" icon="gtk-go-forward"/>
|
|
|
|
<button name="set_done" states="running" string="Stop" type="object" icon="gtk-stop"/>
|
|
|
|
<button name="set_draft" states="done" string="Set to Draft" type="object" icon="gtk-convert"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</group>
|
|
|
|
</page>
|
2008-07-01 15:58:58 +00:00
|
|
|
<page string="Documents created">
|
|
|
|
<field colspan="4" name="doc_lines" nolabel="1" widget="one2many_list"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</page>
|
2010-07-02 08:32:50 +00:00
|
|
|
<page string="Notes">
|
|
|
|
<separator string="Notes" colspan="4"/>
|
|
|
|
<field name="note" colspan="4" nolabel="1"/>
|
|
|
|
</page>
|
2008-06-29 08:26:07 +00:00
|
|
|
</notebook>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-01-12 11:12:52 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="view_subscription_tree" model="ir.ui.view">
|
|
|
|
<field name="name">subscription.subscription.tree</field>
|
|
|
|
<field name="model">subscription.subscription</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Subscriptions">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="partner_id"/>
|
2010-08-31 07:26:33 +00:00
|
|
|
<field name="active" groups="base.group_extended"/>
|
|
|
|
<field name="user_id" select="1"/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="state"/>
|
2010-08-31 07:26:33 +00:00
|
|
|
<button name="set_process" states="draft" string="Process" type="object" icon="terp-check"/>
|
|
|
|
<button name="set_done" states="running" string="Done" type="object" icon="terp-gtk-stop"/>
|
|
|
|
<button name="set_draft" states="done" string="Set to Draft" type="object" icon="terp-document-new"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-01-12 11:12:52 +00:00
|
|
|
|
2010-07-12 12:05:00 +00:00
|
|
|
<record id="view_subscription_filter" model="ir.ui.view">
|
|
|
|
<field name="name">subscription.subscription.filter</field>
|
|
|
|
<field name="model">subscription.subscription</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Search Subscription">
|
|
|
|
<group col="10" colspan="4">
|
2010-08-31 07:26:33 +00:00
|
|
|
<filter icon="terp-check"
|
|
|
|
string="Running"
|
|
|
|
domain="[('state','=','running')]"/>
|
2010-08-31 13:24:37 +00:00
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<filter string="This Week" icon="terp-go-week" domain="[('date_init','<=', time.strftime('%%Y-%%m-%%d')), ('date_init','>',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]"/>
|
|
|
|
<filter icon="terp-go-today" string="Today"
|
|
|
|
domain="[('date_init','<', time.strftime('%%Y-%%m-%%d 23:59:59')), ('date_init','>=', time.strftime('%%Y-%%m-%%d 00:00:00'))]"/>
|
2010-08-31 07:26:33 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-07-12 12:05:00 +00:00
|
|
|
<field name="name"/>
|
2010-08-31 07:26:33 +00:00
|
|
|
<field name="user_id" select="1"/>
|
|
|
|
<field name="partner_id"/>
|
2010-07-12 12:05:00 +00:00
|
|
|
</group>
|
|
|
|
<newline/>
|
|
|
|
<group expand="0" string="Group By..." colspan="4" col="4">
|
2010-08-31 07:26:33 +00:00
|
|
|
<filter string="User" icon="terp-personal" name="User" domain="[]" context="{'group_by':'user_id'}"/>
|
|
|
|
<filter string="Partner" icon="terp-personal" name="Partner" domain="[]" context="{'group_by':'partner_id'}"/>
|
|
|
|
<separator orientation="vertical"/>
|
2010-07-12 12:05:00 +00:00
|
|
|
<filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
|
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="action_subscription_form" model="ir.actions.act_window">
|
|
|
|
<field name="name">All Subscriptions</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">subscription.subscription</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_id" ref="view_subscription_tree"/>
|
2010-08-31 07:26:33 +00:00
|
|
|
<field name="context">{'search_default_User':1}</field>
|
2010-07-12 12:05:00 +00:00
|
|
|
<field name="search_view_id" ref="view_subscription_filter" />
|
2008-06-29 08:26:07 +00:00
|
|
|
</record>
|
2008-07-01 15:58:58 +00:00
|
|
|
<menuitem action="action_subscription_form" id="menu_action_subscription_form" parent="subscription.next_id_45"/>
|
2010-01-12 11:12:52 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="subscription_subscription_history_tree" model="ir.ui.view">
|
|
|
|
<field name="name">subscription.subscription.history.tree</field>
|
|
|
|
<field name="model">subscription.subscription.history</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Subscription History">
|
|
|
|
<field name="date"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-01-12 11:12:52 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="subscription_subscription_history_form" model="ir.ui.view">
|
|
|
|
<field name="name">subscription.subscription.history.form</field>
|
|
|
|
<field name="model">subscription.subscription.history</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Subscription History">
|
|
|
|
<field name="date"/>
|
|
|
|
<field colspan="4" name="document_id"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-01-12 11:12:52 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="document_form" model="ir.ui.view">
|
|
|
|
<field name="name">subscription.document.form</field>
|
|
|
|
<field name="model">subscription.document</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Subscription Document">
|
|
|
|
<field name="name" select="1"/>
|
|
|
|
<field name="active" select="1"/>
|
|
|
|
<field name="model" select="1"/>
|
|
|
|
<field colspan="4" name="field_ids" nolabel="1"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-01-12 11:12:52 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="document_tree" model="ir.ui.view">
|
|
|
|
<field name="name">subscription.document.tree</field>
|
|
|
|
<field name="model">subscription.document</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Subscription Document">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="active"/>
|
|
|
|
<field name="model"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-01-12 11:12:52 +00:00
|
|
|
|
2010-07-12 12:05:00 +00:00
|
|
|
<record id="view_subscription_document_filter" model="ir.ui.view">
|
|
|
|
<field name="name">subscription.document.filter</field>
|
|
|
|
<field name="model">subscription.document</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Subscription Document">
|
|
|
|
<group col="10" colspan="4">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="model"/>
|
2010-08-31 07:26:33 +00:00
|
|
|
</group>
|
2010-07-12 12:05:00 +00:00
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="document_fields_form" model="ir.ui.view">
|
|
|
|
<field name="name">subscription.document.fields.form</field>
|
|
|
|
<field name="model">subscription.document.fields</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Subscription Document Fields">
|
|
|
|
<field name="field" select="1"/>
|
2010-08-31 13:24:37 +00:00
|
|
|
<newline/>
|
2008-07-01 15:58:58 +00:00
|
|
|
<field name="value"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-01-12 11:12:52 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="document_fields_tree" model="ir.ui.view">
|
|
|
|
<field name="name">subscription.document.fields.tree</field>
|
|
|
|
<field name="model">subscription.document.fields</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Subscription Document Fields">
|
|
|
|
<field name="field"/>
|
|
|
|
<field name="value"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-01-12 11:12:52 +00:00
|
|
|
|
2008-07-01 15:58:58 +00:00
|
|
|
<record id="action_document_form" model="ir.actions.act_window">
|
|
|
|
<field name="name">Document Types</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">subscription.document</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_id" ref="document_tree"/>
|
2010-07-12 12:05:00 +00:00
|
|
|
<field name="search_view_id" ref="view_subscription_document_filter" />
|
2008-06-29 08:26:07 +00:00
|
|
|
</record>
|
2010-06-21 08:50:32 +00:00
|
|
|
<menuitem name="Configuration" parent="base.menu_tools"
|
2010-07-27 11:33:52 +00:00
|
|
|
id="base.menu_lunch_survey_root" sequence="20" groups="base.group_system" />
|
2010-06-21 08:50:32 +00:00
|
|
|
<menuitem id="config_recuuring_event" name="Recurring Events" parent="base.menu_lunch_survey_root" sequence="4"/>
|
|
|
|
<menuitem action="action_document_form" id="menu_action_document_form" parent="config_recuuring_event"/>
|
2008-06-29 08:26:07 +00:00
|
|
|
</data>
|
2008-09-10 17:56:00 +00:00
|
|
|
</openerp>
|