[FIX] sale_timesheet: remove unused, invisible timesheet_ids

The `timesheet_ids` was added in the `sale.order` form.

As it was invisible, and not used by the attrs of another
field, or by an onchange, this is pointless to load
it for no reasons.

Besides, this could lead to issues regarding the form validation,
in case the analytic lines were not valid.
e.g. if an editable list view is used to load
these analytic lines and if a field in this editable list
has been made required,
while analytic lines exist with this field not filled.
In such a case, it was not possible for the user to correct the
analytic lines, as they were invisible, and it was not the place
to correct them anyway.

opw-672184
This commit is contained in:
Denis Ledoux
2016-03-16 16:23:38 +01:00
parent e8b965f93c
commit 93ed3e29bf
@@ -33,7 +33,6 @@
<field name="arch" type="xml">
<data>
<xpath expr="//button[@name='action_view_invoice']" position="before">
<field name="timesheet_ids" invisible="1"/>
<button type="object"
name="action_view_timesheet"
class="oe_stat_button"