[FIX] account_voucher: fixed the yaml test that was wrongly raising error + fixed...
authorqdp-launchpad@tinyerp.com <>
Wed, 5 Jan 2011 15:16:59 +0000 (16:16 +0100)
committerqdp-launchpad@tinyerp.com <>
Wed, 5 Jan 2011 15:16:59 +0000 (16:16 +0100)
bzr revid: qdp-launchpad@tinyerp.com-20110105151659-ncfgrpf8sd8qraxj

addons/account_voucher/account_voucher.py
addons/account_voucher/test/sales_receipt.yml

index 7273575..12c8383 100644 (file)
@@ -686,7 +686,7 @@ class account_voucher(osv.osv):
                 'date': inv.date,
                 'date_maturity': inv.date_due
             }
-            master_line = move_line_pool.create(cr, uid, move_line)
+            move_line_pool.create(cr, uid, move_line)
             rec_list_ids = []
             line_total = debit - credit
             if inv.type == 'sale':
index a179352..d3fd720 100644 (file)
@@ -3,7 +3,7 @@
 - 
   !record {model: account.voucher, id: account_voucher_seagate_0}:
     account_id: account.a_recv
-    amount: 0.0
+    amount: 30000.0
     company_id: base.main_company
     currency_id: base.EUR
     journal_id: account.sales_journal
@@ -13,7 +13,6 @@
         type: cr
     partner_id: base.res_partner_seagate
     period_id: account.period_9
-    tax_amount: 0.0
     type: sale
     
 -