[IMP] yaml tests

bzr revid: fp@tinyerp.com-20111114221924-btl3n72he07nysvd
This commit is contained in:
Fabien Pinckaers
2011-11-14 23:19:24 +01:00
parent dd35a53e5b
commit e155ff6d07
2 changed files with 1 additions and 4 deletions
@@ -150,7 +150,7 @@
assert (move_line.debit - move_line.credit == 80), "Invoice move is incorrect for debtors account"
-
I create the first voucher of payment
<create with values 200 EUR (€), journal EUR, and fills amount 130€ for the invoice of 200$ and 70€ for the invoice of 100$>
<create with values 200 EUR, journal EUR, and fills amount 130 EUR for the invoice of 200 USD and 70 EUR for the invoice of 100 USD>
-
!python {model: account.voucher}: |
import netsvc, time
-3
View File
@@ -5,7 +5,6 @@
name: 20KG
uom_type: bigger
category_id: product.product_uom_categ_kgm
rounding: 0.010
factor_inv: 20
-
I create a 10KG UOM for 'Sugar'
@@ -14,14 +13,12 @@
name: 10KG
uom_type: bigger
category_id: product.product_uom_categ_kgm
rounding: 0.010
factor_inv: 10
-
I create a new product 'Sugar' in 20KG UOM.
-
!record {model: product.product, id: product_sugar_id1}:
categ_id: 'product.product_category_rawmaterial0'
cost_method: standard
name: Sugar 20KG
procure_method: make_to_order
standard_price: 400.0