[IMP] marketing_campaign :- improve view in marketing.campaign.activity object.

bzr revid: support@serpentcs.com-20120110082549-9p0as341u3ijl4he
This commit is contained in:
Serpent Consulting Services 2012-01-10 13:55:49 +05:30
parent 717b59c00c
commit 1b9f78308b
1 changed files with 31 additions and 27 deletions

View File

@ -243,36 +243,40 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Activities">
<group colspan='2' col='2'>
<separator string="Activity" colspan="4"/>
<field name="name" select="1" colspan='4' />
<field name="signal" groups="base.group_extended"/>
<field name="start"/>
<field name="object_id" invisible="1"/>
<field name="campaign_id" invisible="1"/>
</group>
<group colspan='2' col='2'>
<separator string="Cost / Revenue" colspan="4"/>
<field name="variable_cost"/>
<field name="revenue"/>
<group colspan='4' col="4">
<group colspan='2' col="2">
<separator string="Activity" colspan="4"/>
<field name="name" select="1" colspan='4' />
<field name="signal" groups="base.group_extended"/>
<field name="start"/>
<field name="object_id" invisible="1"/>
<field name="campaign_id" invisible="1"/>
</group>
<group colspan='2' col="2">
<separator string="Cost / Revenue" colspan="4"/>
<field name="variable_cost"/>
<field name="revenue"/>
</group>
</group>
<newline/>
<group colspan='4' col='2'>
<separator string="Condition" colspan="4"/>
<field name="condition" widget="char" colspan="2"/>
<field name="keep_if_condition_not_met"/>
</group>
<group colspan='4' col='4'>
<separator string="Action" colspan="4"/>
<field name="type"/>
<group colspan='2' col='2'>
<field name="email_template_id" attrs="{'required':[('type','=','email')], 'invisible':[('type','!=','email')]}"
context="{'default_model_id':object_id}" />
<group attrs="{'invisible':[('type','!=','report')]}" >
<field name="report_id" attrs="{'required':[('type','=','report')]}" context="{'object_id':object_id}"/>
<field name="report_directory_id" attrs="{'required':[('type','=','report')]}" />
<group colspan='4' col="4">
<group colspan='4' col="4">
<separator string="Condition" colspan="4"/>
<field name="condition" widget="char" colspan="4"/>
<field name="keep_if_condition_not_met"/>
</group>
<group colspan='4' col='4'>
<separator string="Action" colspan="4"/>
<field name="type"/>
<group colspan='2' col='2'>
<field name="email_template_id" attrs="{'required':[('type','=','email')], 'invisible':[('type','!=','email')]}"
context="{'default_model_id':object_id}" />
<field name="server_action_id" attrs="{'required':[('type','=','action')],'invisible':[('type','!=','action')]}" domain="[('model_id','=',object_id)]" />
<group attrs="{ 'invisible':[('type','!=','report')]}">
<field name="report_id" attrs="{'required':[('type','=','report')]}" context="{'object_id':object_id}" />
<field name="report_directory_id" attrs="{'required':[('type','=','report')]}" />
</group>
</group>
<field name="server_action_id" attrs="{'required':[('type','=','action')],'invisible':[('type','!=','action')]}" domain="[('model_id','=',object_id)]" />
</group>
</group>
<separator string="Transitions" colspan="4"/>