mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
update test call
This commit is contained in:
committed by
Florian da Costa
parent
a6c401bf05
commit
cda19ac0b6
@@ -66,20 +66,16 @@
|
|||||||
-
|
-
|
||||||
!python {model: account.move.line}: |
|
!python {model: account.move.line}: |
|
||||||
import datetime as dt
|
import datetime as dt
|
||||||
context['check_move_validity'] = False
|
model.browse(ref('move_line_ci')).with_context(check_move_validity=False).write({'name': dt.date.today().strftime('TBNK/%Y/0001'),'credit': 210.0})
|
||||||
model.write({'name': dt.date.today().strftime('TBNK/%Y/0001'),
|
model.browse(ref('move_line_si')).with_context(check_move_validity=False).write({'name': 'T2S12345','debit': 65.0})
|
||||||
'credit': 210.0})
|
model.browse(ref('move_line_cr')).with_context(check_move_validity=False).write({'name': dt.date.today().strftime('RTEXJ/%Y/0001'),'debit': 210.0})
|
||||||
model.write({'name': 'T2S12345',
|
model.browse(ref('move_line_partner_name')).with_context(check_move_validity=False).write({'credit': 600.0})
|
||||||
'debit': 65.0})
|
model.browse(ref('move_line_partner_label')).with_context(check_move_validity=False).write({'debit': 932.4})
|
||||||
model.write({'name': dt.date.today().strftime('RTEXJ/%Y/0001'),
|
|
||||||
'debit': 210.0})
|
|
||||||
model.write({'credit': 600.0})
|
|
||||||
model.write({'debit': 932.4})
|
|
||||||
-
|
-
|
||||||
I run the auto complete
|
I run the auto complete
|
||||||
-
|
-
|
||||||
!python {model: account.move}: |
|
!python {model: account.move, ref: move_test1}: |
|
||||||
result = self.button_auto_completion()
|
result = model.browse(ref('move_test1')).button_auto_completion()
|
||||||
-
|
-
|
||||||
Now I can check that all is nice and shiny, line 1. I expect the Customer
|
Now I can check that all is nice and shiny, line 1. I expect the Customer
|
||||||
Invoice Number to be recognised.
|
Invoice Number to be recognised.
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
-
|
-
|
||||||
I confirm the refund
|
I confirm the refund
|
||||||
-
|
-
|
||||||
!python {model: account.invoice, id: invoice_for_completion_1}:
|
!python {model: account.invoice, ref: invoice_for_completion_1}: |
|
||||||
self.action_invoice_open()
|
model.browse(ref('refund_for_completion_1')).action_invoice_open()
|
||||||
-
|
-
|
||||||
I check that the refund state is "Open"
|
I check that the refund state is "Open"
|
||||||
-
|
-
|
||||||
|
|||||||
@@ -17,10 +17,8 @@
|
|||||||
-
|
-
|
||||||
I add a reference to an existing supplier invoce
|
I add a reference to an existing supplier invoce
|
||||||
-
|
-
|
||||||
!python {model: account.invoice}: |
|
!python {model: account.invoice, id: account.demo_invoice_0}: |
|
||||||
self.write({
|
self.write({'reference': 'T2S12345'})
|
||||||
'reference': 'T2S12345'
|
|
||||||
})
|
|
||||||
-
|
-
|
||||||
I check a second time that my invoice is still a supplier invoice
|
I check a second time that my invoice is still a supplier invoice
|
||||||
-
|
-
|
||||||
@@ -29,7 +27,7 @@
|
|||||||
-
|
-
|
||||||
Now I confirm it
|
Now I confirm it
|
||||||
-
|
-
|
||||||
!python {model: account.invoice, id: account.demo_invoice_0}:
|
!python {model: account.invoice, ref: account.demo_invoice_0}: |
|
||||||
self.action_invoice_open()
|
self.action_invoice_open()
|
||||||
-
|
-
|
||||||
I check that the supplier number is there
|
I check that the supplier number is there
|
||||||
|
|||||||
Reference in New Issue
Block a user