[IMP]account_payment: remove a ui folder and its file and move a process file in test and added a demo data yml for account_payment

bzr revid: mma@tinyerp.com-20111129053510-mgyesspwq3gc8a6d
This commit is contained in:
Mayur Maheshwari (OpenERP) 2011-11-29 11:05:10 +05:30
parent 8a59a9acef
commit 4f43cda69c
7 changed files with 24 additions and 39 deletions

View File

@ -51,11 +51,11 @@ This module provides :
],
'demo_xml': ['account_payment_demo.xml'],
'test': [
'test/process/draft2cancel_payment_order.yml',
'test/process/draft2done_payment_order.yml',
'test/process/draft2valid_bank_statement.yml',
'test/ui/payment_order_form.yml',
'test/process/account_payment_report.yml'
'test/draft2cancel_payment_order.yml',
'test/draft2done_payment_order.yml',
'test/draft2valid_bank_statement.yml',
'account_payment_demo.yml',
'test/account_payment_report.yml'
],
'installable': True,
'active': False,

View File

@ -0,0 +1,19 @@
-
!record {model: res.partner.bank, id: partner_bank_1}:
name: Reserve Bank
acc_number: 00987654321
partner_id: base.res_partner_agrolait
bank: base.res_bank_1
state: bank
-
!record {model: payment.mode, id: payment_mode_1}:
name: Direct Payment
journal: account.bank_journal
bank_id: account_payment.partner_bank_1
-
!record {model: payment.order, id: payment_order_1}:
mode: account_payment.payment_mode_1
user_id: base.user_root
date_prefered: now

View File

@ -1,34 +0,0 @@
-
In order to test the features of payment mode form
-
I call a onchange event to change the company of payment mode
-
!python {model: payment.mode}: |
self.onchange_company_id(cr, uid, [ref("account_payment.payment_mode_1")], ref("base.main_company"))
-
I call a onchange event to change the company and partner of payment line
-
!python {model: payment.line}: |
payment = self.pool.get('payment.order').browse(cr, uid, ref("account_payment.payment_order_1"))
payment_line = payment.line_ids[0]
self.onchange_amount(cr, uid, [payment_line.id], 14, ref("base.EUR"), ref("base.EUR"))
self.onchange_partner(cr, uid, [payment_line.id], ref("base.res_partner_maxtor"), 1)
-
I view the payment entries record
-
!python {model: account.payment.populate.statement}: |
self.fields_view_get(cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False)
-
I view the payment entries record
-
!python {model: payment.order.create}: |
self.fields_view_get(cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False)
-
I copy the payment order record
-
!python {model: payment.mode}: |
self.copy(cr, uid, (ref("account_payment.payment_order_1")))