[IMP]improve yml for account
bzr revid: sgo@tinyerp.com-20130221052958-metvr090gsubdc5u
This commit is contained in:
parent
e072555682
commit
56cb7db019
|
@ -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',
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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
|
||||
-
|
||||
|
|
|
@ -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
|
||||
-
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue