On 23/08/07 20:50 +0200, [EMAIL PROTECTED] wrote:
> 
> I was trying Fabien's suggestion of creating a new database with 4.2.0-rc2 
> but I am running into some problems trying to accomplish this.  If I try to 
> create a new database with demo data then I get the error:


This is a known issue when you create a DB with an other device than
EUR.
It have been fixed for the next rc.
Here is the patch.

-- 
Cédric Krier

Tiny sprl
Chaussée de Namur, 40
B-1367 Gérompont
Belgique
Tel: +32.81.81.37.00
Fax: (+32) 81.73.35.01
Web: http://tiny.be
commit f5787706e9b575e4cb704174ce4188e8cb822da3
Author: ced <[EMAIL PROTECTED]>
Date:   Thu Aug 23 16:07:01 2007 +0000

    Fix unit test when pay invoice in different currency
    
    
    git-svn-id: https://svn.tinyerp.com/svn/terp/[EMAIL PROTECTED] 
2a2af0bd-56f1-0310-80e0-8b88f2566ddb

diff --git a/server/bin/addons/purchase/purchase_unit_test.xml 
b/server/bin/addons/purchase/purchase_unit_test.xml
index f26a863..0341351 100644
--- a/server/bin/addons/purchase/purchase_unit_test.xml
+++ b/server/bin/addons/purchase/purchase_unit_test.xml
@@ -102,9 +102,9 @@
                        <value eval="ref('account.cash')" />
                        <value eval="ref('account.period_' + 
str(int(time.strftime('%m'))))" />
                        <value eval="ref('account.bank_journal')" />
-                       <value eval="False" />
+                       <value eval="ref('account.cash')" />
                        <value eval="ref('account.period_' + 
str(int(time.strftime('%m'))))" />
-                       <value eval="False" />
+                       <value eval="ref('account.bank_journal')" />
                </function>
                
                <assert model="purchase.order" id="test_purchase_1" 
string="Test purchase's invoice is now paid" severity="error">
diff --git a/server/bin/addons/sale/sale_unit_test.xml 
b/server/bin/addons/sale/sale_unit_test.xml
index 70272b6..89c38a8 100644
--- a/server/bin/addons/sale/sale_unit_test.xml
+++ b/server/bin/addons/sale/sale_unit_test.xml
@@ -71,9 +71,9 @@
                        <value eval="ref('account.cash')" />
                        <value eval="ref('account.period_' + 
str(int(time.strftime('%m'))))" />
                        <value eval="ref('account.bank_journal')" />
-                       <value eval="False" />
+                       <value eval="ref('account.cash')" />
                        <value eval="ref('account.period_' + 
str(int(time.strftime('%m'))))" />
-                       <value eval="False" />
+                       <value eval="ref('account.bank_journal')" />
                </function>
                
                <assert model="sale.order" id="test_order_1" string="Test order 
1's invoice is now paid" severity="fatal">

Attachment: pgp0dUW9tidYp.pgp
Description: PGP signature

_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to