2010-02-02 13:47:02 +00:00
<?xml version="1.0" encoding="utf-8"?>
<openerp >
<data >
<menuitem id= "menu_base_action_rule" name= "Action Rule" parent= "base.menu_base_config" sequence= "0" />
<!--
Action Rule
-->
<record id= "view_base_action_rule_form" model= "ir.ui.view" >
<field name= "name" > base.action.rule.form</field>
<field name= "model" > base.action.rule</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Action Rule" >
2010-02-15 14:42:24 +00:00
<field name= "name" />
<field name= "active" />
<field name= "max_level" />
<separator colspan= "4" string= "Rule lines" />
<field name= "rule_lines" colspan= "4" nolabel= "1" />
2010-02-02 13:47:02 +00:00
</form>
</field>
</record>
<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>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
2010-02-15 14:42:24 +00:00
<tree string= "Action Rule" >
2010-02-09 12:48:12 +00:00
<field name= "name" />
2010-02-15 14:42:24 +00:00
<field name= "max_level" />
2010-02-02 13:47:02 +00:00
</tree>
</field>
</record>
<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" />
</record>
<menuitem id= "menu_base_action_rule_form" parent= "menu_base_action_rule" action= "base_action_rule_act" />
<!--
Action Rule Lines
-->
<record id= "view_base_action_rule_line_form" model= "ir.ui.view" >
<field name= "name" > base.action.rule.line.form</field>
<field name= "model" > base.action.rule.line</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Action Rule Line" >
<field name= "name" select= "1" />
<field name= "active" select= "2" />
<notebook colspan= "4" >
2010-02-15 14:42:24 +00:00
<page string= "Conditions" >
2010-02-03 10:28:09 +00:00
<separator colspan= "4" string= "Conditions on Model Fields" />
<field name= "regex_name" string= "Regex on Model Name" colspan= "2" />
2010-02-02 13:47:02 +00:00
<field name= "trg_user_id" select= "2" />
2010-02-03 10:28:09 +00:00
<separator colspan= "4" string= "Conditions on Model Partner" />
2010-02-02 13:47:02 +00:00
<field name= "trg_partner_id" />
<field name= "trg_partner_categ_id" />
2010-02-15 14:42:24 +00:00
<separator colspan= "4" string= "Conditions on States" />
<field name= "trg_state_from" select= "2" />
<field name= "trg_state_to" select= "2" />
2010-02-02 13:47:02 +00:00
<separator colspan= "4" string= "Conditions on Priority Range" />
<field name= "trg_priority_from" />
<field name= "trg_priority_to" />
<separator colspan= "4" string= "Conditions on Timing" />
<field name= "trg_date_type" />
<label align= "1.0" string= "Delay After Trigger Date:" />
<group col= "2" colspan= "1" >
<field name= "trg_date_range" nolabel= "1" />
<field name= "trg_date_range_type" nolabel= "1" />
</group>
<separator colspan= "4" string= "Note" />
2010-02-03 10:28:09 +00:00
<label align= "0.0" string= "The rule use a AND operator. The model must match all non empty fields so that the rule execute the action described in the 'Actions' tab." colspan= "4" />
2010-02-02 13:47:02 +00:00
</page>
<page string= "Actions" >
<separator colspan= "4" string= "Fields to Change" />
2010-02-15 14:42:24 +00:00
<field name= "act_user_id" />
2010-02-02 13:47:02 +00:00
<field name= "act_state" />
2010-02-15 14:42:24 +00:00
<field name= "act_priority" />
<separator colspan= "4" string= "E-Mail Reminders (includes the content of the object)" />
2010-02-02 13:47:02 +00:00
<field name= "act_remind_partner" />
<field name= "act_remind_attach" />
2010-02-08 10:34:14 +00:00
<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-02-02 13:47:02 +00:00
<field colspan= "4" name= "act_email_cc" />
<separator colspan= "4" string= "Server Action to be Triggered" />
<field name= "server_action_id" />
</page>
<page string= "E-Mail Actions" >
<separator colspan= "4" string= "Template of Email to Send" />
2010-02-15 14:42:24 +00:00
<field name= "act_mail_to_user" />
2010-02-02 13:47:02 +00:00
<field name= "act_mail_to_watchers" />
<field colspan= "4" name= "act_mail_to_email" />
2010-02-08 10:34:14 +00:00
<field colspan= "4" name= "act_mail_body" 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" />
<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" />
<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" />
<label align= "0.0" string= "%%(object_user_email)s = Responsible email" colspan= "2" />
<label align= "0.0" string= "%%(object_user_phone)s = Responsible phone" colspan= "2" />
2010-02-02 13:47:02 +00:00
<label align= "0.0" string= "%% = The '%%' Character" colspan= "2" />
</page>
</notebook>
</form>
</field>
</record>
<record id= "view_base_action_rule_line_tree" model= "ir.ui.view" >
<field name= "name" > base.action.rule.line.tree</field>
<field name= "model" > base.action.rule.line</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
<tree string= "Action Rule Lines" >
<field name= "name" />
<field name= "active" />
</tree>
</field>
2010-02-15 14:42:24 +00:00
</record>
2010-02-02 13:47:02 +00:00
</data>
2010-02-15 14:42:24 +00:00
</openerp>