[IMP]improve yml for account

bzr revid: sgo@tinyerp.com-20130221052958-metvr090gsubdc5u
This commit is contained in:
sgo@tinyerp.com 2013-02-21 10:59:58 +05:30
parent e072555682
commit 56cb7db019
6 changed files with 37 additions and 1 deletions

View File

@ -146,6 +146,7 @@ for a particular financial year and for preparation of vouchers there is a modul
'account_unit_test.xml',
],
'test': [
'test/account_test_users.yml',
'test/account_customer_invoice.yml',
'test/account_supplier_invoice.yml',
'test/account_change_currency.yml',

View File

@ -12,7 +12,7 @@
<record id="group_account_user" model="res.groups">
<field name="name">Accountant</field>
<field name="category_id" ref="base.module_category_accounting_and_finance"/>
<field name="implied_ids" eval="[(4, ref('group_account_invoice'))]"/>
<field name="implied_ids" eval="[(4, ref('group_account_invoice')), (4,ref('base.group_partner_manager'))]"/>
</record>
<record id="group_account_manager" model="res.groups">

View File

@ -11,6 +11,11 @@
footer: True
bank: base.res_bank_1
bank_name: Reserve
-
Test with that user which have rights to make Invoicing and payment and who is accountant.
-
!context
uid: 'res_users_account_user'
-
I create a customer invoice
-

View File

@ -1,3 +1,8 @@
-
Test with that user which have rights to make Invoicing.
-
!context
uid: 'res_users_account_user'
-
In order to test Confirm Draft Invoice wizard I create an invoice and confirm it with this wizard
-

View File

@ -0,0 +1,20 @@
-
Create a user as 'Accountant'
-
!record {model: res.users, id: res_users_account_user}:
company_id: base.main_company
name: Accountant
login: acc
password: acc
groups_id:
- account.group_account_user
-
Create a user as 'Financial Manager'
-
!record {model: res.users, id: res_users_account_manager}:
company_id: base.main_company
name: Financial Manager
login: fm
password: fm
groups_id:
- account.group_account_manager

View File

@ -1,3 +1,8 @@
-
Test validate account move with user who is accountant which have its rights.'
-
!context
uid: 'res_users_account_user'
-
In order to test the account move lines in OpenERP, I create account move
-