hr_timesheet_sheet: add domain on account for state close
[odoo/odoo.git] / addons / hr_timesheet_sheet / hr_timesheet_sheet_view.xml
index 0b8fe46..5d927a5 100644 (file)
@@ -76,7 +76,7 @@
                                                <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" />
-                                                               <field name="account_id" on_change="on_change_account_id(account_id)" domain="[('type','=','normal')]"/>
+                                                               <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="to_invoice"/>