2010-02-02 13:47:02 +00:00
<?xml version="1.0" encoding="utf-8"?>
<openerp >
<data >
2010-04-16 09:16:25 +00:00
<menuitem id= "menu_base_action_rule" name= "Action Rule"
groups="base.group_extended"
2010-07-28 13:30:41 +00:00
parent="base.menu_base_config" sequence="500" />
2010-03-03 06:04:34 +00:00
2010-04-16 09:16:25 +00:00
<!--
Action Rule Form View
-->
<record id= "view_base_action_rule_form" model= "ir.ui.view" >
<field name= "name" > base.action.rule.form</field>
2010-02-02 13:47:02 +00:00
<field name= "model" > base.action.rule</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Action Rule" >
2010-07-26 09:20:14 +00:00
<field name= "name" />
<field name= "model_id" select= "1" on_change= "onchange_model_id(model_id)" />
<field name= "filter_id" />
2010-05-11 08:59:48 +00:00
<field name= "sequence" />
2010-07-26 09:20:14 +00:00
<field name= "active" />
2010-02-02 13:47:02 +00:00
<notebook colspan= "4" >
2010-03-03 06:04:34 +00:00
<page string= "Conditions" >
<group col= "2" colspan= "2" name= "model" >
<separator colspan= "4" string= "Conditions on Model Fields" />
2010-07-09 11:54:22 +00:00
<field name= "regex_name" colspan= "2" />
2010-04-16 09:16:25 +00:00
<field name= "trg_user_id" />
2010-03-03 06:04:34 +00:00
</group>
<group col= "2" colspan= "2" name= "partner" >
<separator colspan= "4" string= "Conditions on Model Partner" />
<field name= "trg_partner_id" />
<field name= "trg_partner_categ_id" />
</group>
<group col= "2" colspan= "2" >
<separator colspan= "4" string= "Conditions on States" />
2010-04-16 09:16:25 +00:00
<field name= "trg_state_from" />
<field name= "trg_state_to" />
2010-03-03 06:04:34 +00:00
</group>
<group col= "2" colspan= "2" >
<separator colspan= "4" string= "Conditions on Timing" />
<field name= "trg_date_type" />
2010-05-11 08:59:48 +00:00
<group col= "3" colspan= "2" attrs= "{'invisible': [('trg_date_type', '=', 'none')]}" >
<field name= "trg_date_range" string= "Delay After Trigger Date" />
2010-03-03 06:04:34 +00:00
<field name= "trg_date_range_type" nolabel= "1" />
2010-05-11 08:59:48 +00:00
</group>
2010-02-02 13:47:02 +00:00
</group>
<separator colspan= "4" string= "Note" />
2010-05-11 08:59:48 +00:00
<label align= "0.0" colspan= "4" width= "900"
2010-06-02 14:13:28 +00:00
string="The rule uses the AND operator. The model must match all non-empty fields so that the rule executes the action described in the 'Actions' tab." />
2010-02-02 13:47:02 +00:00
</page>
<page string= "Actions" >
<separator colspan= "4" string= "Fields to Change" />
2010-03-03 06:04:34 +00:00
<field name= "act_user_id" />
2010-02-02 13:47:02 +00:00
<field name= "act_state" />
<separator colspan= "4" string= "Server Action to be Triggered" />
<field name= "server_action_id" />
</page>
2010-05-26 12:13:46 +00:00
<page string= "Email Actions" >
2010-07-06 11:46:25 +00:00
<separator colspan= "4" string= "Email Reminders" />
<field name= "act_remind_partner" />
<field name= "act_remind_attach" />
<field name= "act_remind_user" />
<group col= "2" colspan= "2" attrs= "{'invisible': [('act_remind_user','=',False)]}" >
<field name= "act_reply_to" attrs= "{'required':[('act_remind_user','=',True)]}" />
</group>
2010-05-26 12:13:46 +00:00
<separator colspan= "4" string= "Email Information" />
2010-05-11 08:59:48 +00:00
<field name= "act_mail_to_user" />
<field colspan= "4" name= "act_mail_to_email" />
2010-07-06 11:46:25 +00:00
<field name= "act_mail_to_watchers" />
2010-05-11 08:59:48 +00:00
<field colspan= "4" name= "act_email_cc" />
2010-05-26 12:13:46 +00:00
<separator colspan= "4" string= "Email Body" />
2010-05-11 08:59:48 +00:00
<field colspan= "4" name= "act_mail_body" height= "250"
nolabel="1" attrs="{'required':[('act_remind_user','=',True)]}" />
2010-02-02 13:47:02 +00:00
<separator colspan= "4" string= "Special Keywords to Be Used in The Body" />
2010-02-15 14:42:24 +00:00
<label align= "0.0" string= "%%(object_id)s = Object ID" colspan= "2" />
<label align= "0.0" string= "%%(object_subject)s = Object subject" colspan= "2" />
<label align= "0.0" string= "%%(object_description)s = Object description" colspan= "2" />
2010-03-03 06:04:34 +00:00
<label align= "0.0" string= "%%(object_date)s = Creation date" colspan= "2" />
2010-02-02 13:47:02 +00:00
<label align= "0.0" string= "%%(partner)s = Partner name" colspan= "2" />
2010-05-26 12:13:46 +00:00
<label align= "0.0" string= "%%(partner_email)s = Partner Email" colspan= "2" />
2010-02-15 14:42:24 +00:00
<label align= "0.0" string= "%%(object_user)s = Responsible name" colspan= "2" />
2010-05-26 12:13:46 +00:00
<label align= "0.0" string= "%%(object_user_email)s = Responsible Email" colspan= "2" />
2010-02-15 14:42:24 +00:00
<label align= "0.0" string= "%%(object_user_phone)s = Responsible phone" colspan= "2" />
2010-02-02 13:47:02 +00:00
</page>
</notebook>
</form>
</field>
2010-04-26 13:45:17 +00:00
</record>
2010-03-25 13:43:25 +00:00
2010-04-26 13:45:17 +00:00
<!-- Action Rule Tree View -->
2010-03-25 13:43:25 +00:00
2010-04-26 13:45:17 +00:00
<record id= "view_base_action_rule_tree" model= "ir.ui.view" >
<field name= "name" > base.action.rule.tree</field>
<field name= "model" > base.action.rule</field>
2010-02-02 13:47:02 +00:00
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2010-04-26 13:45:17 +00:00
<tree string= "Action Rule" >
2010-05-11 08:59:48 +00:00
<field name= "sequence" />
2010-07-10 10:55:48 +00:00
<field name= "name" colspan= "4" />
<field name= "filter_id" />
2010-02-02 13:47:02 +00:00
</tree>
</field>
2010-04-26 13:45:17 +00:00
</record>
<!-- Action Rule Action -->
<record id= "base_action_rule_act" model= "ir.actions.act_window" >
<field name= "name" > Action Rules</field>
<field name= "res_model" > base.action.rule</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
<field name= "view_id" ref= "view_base_action_rule_tree" />
2010-03-03 06:04:34 +00:00
</record>
2010-04-26 13:45:17 +00:00
<menuitem id= "menu_base_action_rule_form"
parent="menu_base_action_rule" action="base_action_rule_act" />
2010-03-03 06:04:34 +00:00
2010-02-02 13:47:02 +00:00
</data>
2010-02-15 14:42:24 +00:00
</openerp>