[IMP] lead form view, group form, project_gtd not an app

bzr revid: fp@tinyerp.com-20121124175319-35lipyk2wj8w9mmh
This commit is contained in:
Fabien Pinckaers 2012-11-24 18:53:19 +01:00
parent 117bf937b9
commit 70c499a4d8
4 changed files with 22 additions and 10 deletions

View File

@ -238,7 +238,7 @@ class crm_lead(base_stage, format_address, osv.osv):
'color': fields.integer('Color Index'),
'partner_address_name': fields.related('partner_id', 'name', type='char', string='Partner Contact Name', readonly=True),
'partner_address_email': fields.related('partner_id', 'email', type='char', string='Partner Contact Email', readonly=True),
'company_currency': fields.related('company_id', 'currency_id', 'symbol', type='char', string='Company Currency', readonly=True),
'company_currency': fields.related('company_id', 'currency_id', type='many2one', string='Currency', readonly=True, relation="res.currency"),
'user_email': fields.related('user_id', 'email', type='char', string='User Email', readonly=True),
'user_login': fields.related('user_id', 'login', type='char', string='User Login', readonly=True),

View File

@ -422,9 +422,10 @@
<h1><field name="name"/></h1>
<label for="planned_revenue" class="oe_edit_only"/>
<h2>
<field name="planned_revenue" class="oe_inline"/>
<field name="company_currency" class="oe_inline" groups="base.group_multi_currency"/> at
<field name="probability" class="oe_inline" widget="integer"/>%% success rate
<field name="company_currency" invisible="1"/>
<field name="planned_revenue" class="oe_inline" widget='monetary' options="{'currency_field': 'company_currency'}"/>
<span class="oe_grey"> at </span>
<field name="probability" class="oe_inline" widget="integer"/>%%
</h2>
</div>
<group>
@ -452,7 +453,8 @@
<label for="section_id"/>
<div>
<field name="section_id" widget="selection"/>
<button name="case_escalate" string="Escalate" type="object" states="draft,open,pending"/>
<button name="case_escalate" string="Escalate" type="object" class="oe_link"
attrs="{'invisible': [('section_id', '=', False)]}"/>
</div>
</group>
<group>

View File

@ -83,13 +83,24 @@
<field name="description" placeholder="Topics discussed in this group..."/>
</div>
<div class="oe_clear"/>
<group col="1">
<group>
<group class="oe_edit_only">
<field name="public" class="oe_inline"/>
<field name="group_public_id" class="oe_inline"
<field name="public"/>
<field name="group_public_id"
attrs="{'invisible': [('public','&lt;&gt;','groups')], 'required': [('public','=','groups')]}"
/>
<field name="group_ids" widget="many2many_tags" class="oe_inline"/>
<field name="group_ids" widget="many2many_tags"/>
</group>
<group>
<div class="oe_grey" attrs="{'invisible': [('public','&lt;&gt;','public')]}">
This group is visible by everyone,
including your customers if you installed
the portal module.
</div>
<div class="oe_grey" attrs="{'invisible': [('public','&lt;&gt;','private')]}">
Only the invited followers can read the
discussions on this group.
</div>
</group>
</group>
</sheet>

View File

@ -51,7 +51,6 @@ GTD rests on the principle that a person needs to move tasks out of the mind by
'demo': ['project_gtd_demo.xml'],
'test':['test/task_timebox.yml'],
'installable': True,
'application': True,
'auto_install': False,
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: