[IMP]account_payment: some improvement in teg line

bzr revid: mma@tinyerp.com-20111117112710-egyuyxor9imofi40
This commit is contained in:
Mayur Maheshwari (OpenERP) 2011-11-17 16:57:10 +05:30
parent a3417cd707
commit 8a59a9acef
3 changed files with 6 additions and 8 deletions

View File

@ -10,7 +10,7 @@
!assert {model: payment.order, id: account_payment.payment_order_1}:
- state == 'open'
-
In order to no payment line so I perform action to change the state of payment order to "cancel"
In order to not payment line so I perform action to change the state of payment order to "cancel"
-
!python {model: payment.order}: |
self.set_to_draft(cr, uid, [ref("account_payment.payment_order_1")])

View File

@ -1,11 +1,11 @@
-
In order to test the process of supplier invoice I enter the amount for a total of invoice
In order to test the process of supplier invoice, I enter the amount for a total of invoice
-
!python {model: account.invoice}: |
self.write(cr, uid, [ref('account.demo_invoice_0')], {'check_total': 14})
-
In order to test account move line of journal I check that there is no move attached to the invoice at draft
In order to test account move line of journal, I check that there is no move attached to the invoice at draft
-
!python {model: account.invoice}: |
invoice = self.browse(cr, uid, ref("account.demo_invoice_0"))
@ -29,9 +29,7 @@
duedate: !eval time.strftime('%Y-%m-%d')
-
I perform a action to search the entries for create a order
-
Performing an osv_memory action search_entries on module payment.order.create
I perform a action to search the entries for create a payment line
-
!python {model: payment.order.create}: |
self.search_entries(cr, uid, [ref("payment_order_create_0")], {"lang": "en_US",
@ -39,7 +37,7 @@
"tz": False, "active_id": ref("account_payment.payment_order_1"), })
-
In order to make entries in payment line I create a entries
In order to make entries in payment line, I create a entries
-
!python {model: payment.order.create}: |
invoice = self.pool.get('account.invoice').browse(cr, uid, ref("account.demo_invoice_0"))

View File

@ -12,7 +12,7 @@
period_id: account.period_10
-
In order to make entries in bank statement line I import payment order lines
In order to make entries in bank statement line, I import payment order lines
-
!python {model: account.payment.populate.statement}: |
payment = self.pool.get('payment.order').browse(cr, uid, ref("account_payment.payment_order_1"))