[FIX] automated tests
bzr revid: fp@tinyerp.com-20111115000156-0ihc6sfmt96hmw5s
This commit is contained in:
parent
a40c6ac9a8
commit
df8756111e
|
@ -374,7 +374,7 @@ class payment_line(osv.osv):
|
||||||
data = {}
|
data = {}
|
||||||
move_line_obj = self.pool.get('account.move.line')
|
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:
|
if move_line_id:
|
||||||
line = move_line_obj.browse(cr, uid, move_line_id, context=context)
|
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)
|
temp_dict = self.onchange_partner(cr, uid, ids, line.partner_id.id, payment_type)
|
||||||
data.update(temp_dict['value'])
|
data.update(temp_dict['value'])
|
||||||
|
|
||||||
data['reference'] = line.ref
|
|
||||||
data['date_created'] = line.date_created
|
|
||||||
data['communication'] = line.ref
|
data['communication'] = line.ref
|
||||||
|
|
||||||
if date_prefered == 'now':
|
if date_prefered == 'now':
|
||||||
|
|
|
@ -251,7 +251,7 @@
|
||||||
<separator colspan="4" string="Transaction Information"/>
|
<separator colspan="4" string="Transaction Information"/>
|
||||||
<field name="date"/>
|
<field name="date"/>
|
||||||
<group colspan="2">
|
<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"/>
|
<field name="currency" nolabel="1"/>
|
||||||
</group>
|
</group>
|
||||||
<field name="partner_id" on_change="onchange_partner(partner_id, False)" select="1"/>
|
<field name="partner_id" on_change="onchange_partner(partner_id, False)" select="1"/>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
# Creating 1 invoice #
|
# 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
|
company_id: base.main_company
|
||||||
journal_id: account.bank_journal
|
journal_id: account.bank_journal
|
||||||
currency_id: base.EUR
|
currency_id: base.EUR
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
-
|
-
|
||||||
I add an invoice line
|
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
|
account_id: account.a_expense
|
||||||
name: '[PC1] Basic PC'
|
name: '[PC1] Basic PC'
|
||||||
price_unit: 700.0
|
price_unit: 700.0
|
||||||
|
|
Loading…
Reference in New Issue