[FIX] project_issue_sheet: make invoiceable field autofield for worklogs
authorMartin Trigaux <mat@openerp.com>
Tue, 1 Jul 2014 13:48:53 +0000 (15:48 +0200)
committerMartin Trigaux <mat@openerp.com>
Tue, 1 Jul 2014 13:48:53 +0000 (15:48 +0200)
When setting a worklog on a project_issue, the field to_invoice is prefilled with on_change_account_id based on the contract settings. As the field was not present on the list view, the information was lost and every worklog was not written as invoiceable, even if enabled on the contract. opw 609082.

addons/project_issue_sheet/project_issue_sheet_view.xml

index fb245a0..80304de 100644 (file)
@@ -31,6 +31,7 @@
                                 <field invisible="1" name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, False, product_uom_id,journal_id)"/>
                                 <field invisible="1" name="amount"/>
                                 <field invisible="1" name="general_account_id"/>
+                                <field invisible="1" name="to_invoice"/>
                             </tree>
                         </field>
                     </page>