[IMP] hr_timesheet_invoice: yaml, and hr_timesheet view
authorPSI(OpenERP) <>
Tue, 10 Aug 2010 12:01:02 +0000 (17:31 +0530)
committerMustufa Rangwala <mra@mra-laptop>
Tue, 10 Aug 2010 12:01:02 +0000 (17:31 +0530)
bzr revid: mra@mra-laptop-20100810120102-6d7sz4nsyho0i5g9

addons/hr_timesheet_invoice/test/test_hr_timesheet_invoice.yml
addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml

index 51d507f..cda4574 100644 (file)
@@ -21,7 +21,7 @@
   Assign partner name and price list in analytic account.
 -
   !record {model: account.analytic.account, id: account.analytic_sednacom}:
-    partner_id: base.res_partner_9
+    partner_id: base.res_partner_desertic_hispafuentes
     pricelist_id: product.list0
 
 -
index 3369efe..9b51343 100644 (file)
                                     <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 invisible="1" name="journal_id"/>
-                                    <field invisible="1" name="product_id"/>
+                                    <field invisible="1" name="product_id" domain="[('type','=','service')]" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)"/>
                                     <field invisible="1" name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)"/>
                                     <field invisible="1" name="amount"/>
                                     <field invisible="1" name="general_account_id"/>
                                     <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"/>
-                                    <field name="product_id"/>
+                                    <field name="product_id" domain="[('type','=','service')]" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)"/>
                                     <field name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)"/>
                                     <field name="amount"/>
                                     <field name="general_account_id"/>