Add some searchable fields and effort in tree view

This commit is contained in:
NaN?tic 2014-05-27 18:02:47 +02:00
parent b0c1726ecf
commit 98f51a03ad
3 changed files with 8 additions and 1 deletions

View file

@ -37,7 +37,7 @@ class Activity:
def set_main_contact(cls, activities, name, value):
Contact = Pool().get('activity.activity-party.party')
contacts = [contact for activity in activities
for contact in activity.contacts ]
for contact in activity.contacts]
Contact.delete(contacts)
if value:
to_create = []

View file

@ -13,5 +13,9 @@ this repository contains the full copyright notices and license terms. -->
float_time="company_work_time"/>
<field name="hours_to_invoice" widget="float_time"
float_time="company_work_time"/>
<field name="effort" widget="float_time"
float_time="company_work_time"/>
<field name="active" tree_invisible="1"/>
<field name="assigned_employee" tree_invisible="1"/>
<field name="children" tree_invisible="1"/>
</tree>

View file

@ -12,7 +12,10 @@ this repository contains the full copyright notices and license terms. -->
float_time="company_work_time"/>
<field name="hours_to_invoice" widget="float_time"
float_time="company_work_time"/>
<field name="effort" widget="float_time"
float_time="company_work_time"/>
<field name="active" tree_invisible="1"/>
<field name="assigned_employee" tree_invisible="1"/>
<field name="children" tree_invisible="1"/>
</tree>