[FIX] automated tests

bzr revid: fp@tinyerp.com-20111115000156-0ihc6sfmt96hmw5s
This commit is contained in:
Fabien Pinckaers 2011-11-15 01:01:56 +01:00
parent a40c6ac9a8
commit df8756111e
3 changed files with 4 additions and 6 deletions

View File

@ -374,7 +374,7 @@ class payment_line(osv.osv):
data = {}
move_line_obj = self.pool.get('account.move.line')
data['amount_currency'] = data['communication'] = data['partner_id'] = data['reference'] = data['date_created'] = data['bank_id'] = data['amount'] = False
data['amount_currency'] = data['communication'] = data['partner_id'] = data['bank_id'] = data['amount'] = False
if move_line_id:
line = move_line_obj.browse(cr, uid, move_line_id, context=context)
@ -396,8 +396,6 @@ class payment_line(osv.osv):
temp_dict = self.onchange_partner(cr, uid, ids, line.partner_id.id, payment_type)
data.update(temp_dict['value'])
data['reference'] = line.ref
data['date_created'] = line.date_created
data['communication'] = line.ref
if date_prefered == 'now':

View File

@ -251,7 +251,7 @@
<separator colspan="4" string="Transaction Information"/>
<field name="date"/>
<group colspan="2">
<field name="amount_currency" on_change="onchange_amount(amount_currency,currency,comapny_currency)"/>
<field name="amount_currency" on_change="onchange_amount(amount_currency,currency,company_currency)"/>
<field name="currency" nolabel="1"/>
</group>
<field name="partner_id" on_change="onchange_partner(partner_id, False)" select="1"/>

View File

@ -6,7 +6,7 @@
# Creating 1 invoice #
###########################
-
!record {model: account.invoice, id: dta_account_invoice}:
!record {model: account.invoice, id: dta_account_invoice, view: False}:
company_id: base.main_company
journal_id: account.bank_journal
currency_id: base.EUR
@ -25,7 +25,7 @@
-
I add an invoice line
-
!record {model: account.invoice.line, id: dta_invoice_line}:
!record {model: account.invoice.line, id: dta_invoice_line, view: False}:
account_id: account.a_expense
name: '[PC1] Basic PC'
price_unit: 700.0