-
In order to check the payment with multi-currency in OpenERP,
-
In order to check the payment with multi-currency in OpenERP,
- I create a Invoice in EUR and make Payment in USD based on the currency rating.
+ I create an invoice in EUR and make payment in USD based on the currency rating.
-
I create currency USD in OpenERP for May of 1.400000 Rate
-
-
I create currency USD in OpenERP for May of 1.400000 Rate
-
name: !eval "'%s-05-01' %(datetime.now().year)"
rate: 1.400000
-
name: !eval "'%s-05-01' %(datetime.now().year)"
rate: 1.400000
-
- I create a asset account with currency USD
+ I create a bank account with USD as currency
-
!record {model: account.account, id: account_eur_usd_id}:
currency_id: base.USD
-
!record {model: account.account, id: account_eur_usd_id}:
currency_id: base.USD
company_id: base.main_company
view_id: account.account_journal_bank_view
-
company_id: base.main_company
view_id: account.account_journal_bank_view
-
-
!record {model: account.invoice, id: account_invoice_eur_usd}:
account_id: account.a_recv
-
!record {model: account.invoice, id: account_invoice_eur_usd}:
account_id: account.a_recv
journal_id: account.sales_journal
partner_id: base.res_partner_seagate
-
journal_id: account.sales_journal
partner_id: base.res_partner_seagate
-
- I perform action to validate this invoice
+ I Validate invoice by clicking on Validate button
-
!workflow {model: account.invoice, action: invoice_open, ref: account_invoice_eur_usd}
-
-
!workflow {model: account.invoice, action: invoice_open, ref: account_invoice_eur_usd}
-
- I check invoice move is correct
+ I check that invoice move is correct
-
!python {model: account.invoice}: |
invoice = self.browse(cr, uid, ref("account_invoice_eur_usd"))
-
!python {model: account.invoice}: |
invoice = self.browse(cr, uid, ref("account_invoice_eur_usd"))
for move_line in invoice.move_id.line_id:
assert move_line.state == 'valid', "Move line state is not valid"
-
for move_line in invoice.move_id.line_id:
assert move_line.state == 'valid', "Move line state is not valid"
-
- I set the context that will be used for the encoding of all the vouchers of this file
+ I set the type receipt for this voucher
-
!context
'type': 'receipt'
-
!context
'type': 'receipt'