Don't make required field, invisible

bzr revid: ced-3a5fa4609e2f7e8e3ca145cec7038e606cff360e
This commit is contained in:
ced 2007-10-17 13:48:26 +00:00
parent 1d29eb15a8
commit 8e80152d90
1 changed files with 11 additions and 6 deletions

View File

@ -76,16 +76,21 @@
<field name="timesheet_ids" colspan="4" nolabel="1" domain="[('name','=',date_current)]" context="date=date_current,user_id=user_id">
<tree string="Timesheet" editable="top">
<field name="date" invisible="1"/>
<field name="account_id" on_change="on_change_account_id(account_id)" domain="[('type','=','normal'), ('state', '&lt;&gt;', 'close')]"/>
<field name="account_id"
on_change="on_change_account_id(account_id)"
domain="[('type','=','normal'), ('state', '&lt;&gt;', 'close')]"/>
<field name="name" />
<field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" widget="float_time"/>
<field name="unit_amount"
on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)"
widget="float_time"/>
<field name="to_invoice"/>
<field name="journal_id" invisible="1"/>
<field name="product_id" invisible="1"/>
<field name="product_uom_id" invisible="1" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" />
<field name="amount" invisible="1"/>
<field name="general_account_id" invisible="1"/>
<field name="journal_id" invisible="1"/>
<field name="product_uom_id" invisible="1"
on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" />
<field name="amount"/>
<field name="general_account_id"/>
<field name="journal_id"/>
<field name="user_id" required="1" invisible="1"/>
</tree>
</field>