[IMP]: crm*: Improvements

bzr revid: rpa@tinyerp.com-20100920113327-unij93lplhbx99ns
This commit is contained in:
rpa (Open ERP) 2010-09-20 17:03:27 +05:30
parent 636ecd5158
commit e387dbf8e9
9 changed files with 21 additions and 22 deletions

View File

@ -49,9 +49,10 @@
<button string="Opportunity"
name="%(phonecall2opportunity_act)d"
states="draft,open,pending"
icon="gtk-index"
type="action" attrs="{'invisible':[('opportunity_id','!=',False)]}" />
<button string="Meeting"
states="draft,open,pending"
states="draft,open,pending" icon="gtk-redo"
name="action_make_meeting" type="object" />
<field name="state"/>
<button name="case_open" string="Open" states="draft,pending" type="object" icon="gtk-go-forward"/>
@ -96,7 +97,7 @@
<field name="partner_id"
on_change="onchange_partner_id(partner_id, email_from)" />
<button string="Create a Partner"
icon="terp-crm"
icon="gtk-index"
name="%(action_crm_phonecall2partner)d"
type="action"
attrs="{'invisible':[('partner_id','!=',False)]}" />
@ -123,7 +124,7 @@
states="draft,pending" type="object"
icon="gtk-go-forward" />
<button name="case_pending" string="Not Held"
states="open" type="object" icon="gtk-undo" />
states="open" type="object" icon="gtk-media-pause" />
<button name="case_close" string="Held"
states="open,draft,pending" type="object"
icon="gtk-jump-to" />
@ -174,7 +175,7 @@
<field name="partner_id"
on_change="onchange_partner_id(partner_id, email_from)" />
<button string="Create a Partner"
icon="terp-crm"
icon="gtk-index"
name="%(action_crm_phonecall2partner)d"
type="action"
attrs="{'invisible':[('partner_id','!=',False)]}" />
@ -228,7 +229,7 @@
<button string="Opportunity"
name="%(phonecall2opportunity_act)d"
states="draft,open,pending"
icon="gtk-convert"
icon="gtk-index"
type="action" attrs="{'invisible':[('opportunity_id','!=',False)]}" />
<button string="Meeting"
states="draft,open,pending" icon="gtk-redo"

View File

@ -105,7 +105,7 @@ class crm_lead2opportunity(osv.osv_memory):
return value
_columns = {
'name' : fields.char('Opportunity Summary', size=64, required=True, select=1),
'name' : fields.char('Opportunity', size=64, required=True, select=1),
'probability': fields.float('Success Rate (%)'),
'planned_revenue': fields.float('Expected Revenue'),
'partner_id': fields.many2one('res.partner', 'Partner'),

View File

@ -46,10 +46,8 @@ class crm_claim(crm.crm_case, osv.osv):
'ref' : fields.reference('Reference', selection=crm._links_get, size=128),
'ref2' : fields.reference('Reference 2', selection=crm._links_get, size=128),
'canal_id': fields.many2one('res.partner.canal', 'Channel', \
help="The channels represent the different communication"\
"modes available with the customer." \
" With each commercial opportunity, you can indicate the"\
"canall which is this opportunity source."),
help="The channels represent the different communication \
modes available with the customer."),
'planned_revenue': fields.float('Planned Revenue'),
'planned_cost': fields.float('Planned Costs'),
'categ_id': fields.many2one('crm.case.categ', 'Category', \

View File

@ -57,7 +57,7 @@
<field name="model">crm.claim</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Claims" colors="blue:state=='pending';black:state=='open';gray:state in ('close', 'cancel')">
<tree string="Claims" colors="blue:state=='pending';black:state=='open';gray:state in ('close', 'cancel');red:date_deadline and (date_deadline &lt; current_date)">
<field name="name"/>
<field name="partner_id"/>
<field name="user_id" />
@ -330,6 +330,7 @@
context="{'default_partner_id': active_id}"
id="act_claim_partner"
name="Report a Claim"
view_mode="form,tree"
res_model="crm.claim"
src_model="res.partner"/>
@ -339,6 +340,7 @@
context="{'default_partner_address_id': active_id}"
id="act_claim_partner_address"
name="Report a Claim"
view_mode="form,tree"
res_model="crm.claim"
src_model="res.partner.address"/>

View File

@ -87,8 +87,8 @@ msgstr "Day"
#. module: crm_claim
#: help:crm.claim,canal_id:0
msgid "The channels represent the different communicationmodes available with the customer. With each commercial opportunity, you can indicate thecanall which is this opportunity source."
msgstr "The channels represent the different communicationmodes available with the customer. With each commercial opportunity, you can indicate thecanall which is this opportunity source."
msgid "The channels represent the different communication modes available with the customer."
msgstr "The channels represent the different communication modes available with the customer."
#. module: crm_claim
#: help:crm.claim,section_id:0

View File

@ -71,10 +71,8 @@ class crm_fundraising(crm.crm_case, osv.osv):
'ref': fields.reference('Reference', selection=crm._links_get, size=128),
'ref2': fields.reference('Reference 2', selection=crm._links_get, size=128),
'canal_id': fields.many2one('res.partner.canal', 'Channel', \
help="The channels represent the different communication "\
"modes available with the customer." \
" With each commercial opportunity, you can indicate\
the canall which is this opportunity source."),
help="The channels represent the different communication \
modes available with the customer."),
'state': fields.selection(crm.AVAILABLE_STATES, 'State', size=16, readonly=True,
help='The state is set to \'Draft\', when a case is created.\
\nIf the case is in progress the state is set to \'Open\'.\

View File

@ -63,7 +63,7 @@
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Funds Tree"
colors="red:state=='open';black:state in ('draft', 'cancel','done','pending')">
colors="blue:state=='pending';grey:state in ('cancel', 'done')">
<field name="name" string="Fund Description" />
<field name="categ_id" />
<field name="type_id" string="Payment Mode" />

View File

@ -38,8 +38,8 @@ msgstr "Avg. Probability"
#. module: crm_fundraising
#: help:crm.fundraising,canal_id:0
msgid "The channels represent the different communication modes available with the customer. With each commercial opportunity, you can indicate the canall which is this opportunity source."
msgstr "The channels represent the different communication modes available with the customer. With each commercial opportunity, you can indicate the canall which is this opportunity source."
msgid "The channels represent the different communication modes available with the customer."
msgstr "The channels represent the different communication modes available with the customer."
#. module: crm_fundraising
#: constraint:ir.actions.act_window:0

View File

@ -547,8 +547,8 @@ msgstr "Probability (%)"
#. module: crm_helpdesk
#: help:crm.helpdesk,canal_id:0
msgid "The channels represent the different communication modes available with the customer."
msgstr "The channels represent the different communication modes available with the customer."
msgid "The channels represent the different communication modes available with the customer."
msgstr "The channels represent the different communication modes available with the customer."
#. module: crm_helpdesk
#: view:crm.helpdesk.report:0