1
###############################################################################
3
# OERPScenario, OpenERP Functional Tests
4
# Copyright 2009 Camptocamp SA
6
##############################################################################
8
# Features Generic tags (none for all)
9
##############################################################################
10
# Branch # Module # Processes # System
11
@multicompany_base_finance
13
Feature: INSTALL OF LOCALISATION MODULES IN MULTI-COMPANY ENVIRONNEMENT
15
############################### COMPANY 1 ###############################
17
@multicompany_base_finance_chart
18
Scenario: GENERATE ACCOUNT CHART FMA SOCIETE FR
19
Given I need a "res.company" with oid: base.main_company
22
| name | MA SOCIETE FR |
23
And I create monthly periods on the fiscal year with reference "scenario.fy2013"
24
Then I find a "account.fiscalyear" with oid: scenario.fy2013
25
Given I have the module account installed
26
And no account set for company "MA SOCIETE FR"
27
And I want to generate account chart from chart template named "Plan Comptable Général (France)" with "6" digits for company "MA SOCIETE FR"
28
When I generate the chart
29
Then accounts should be available for company "MA SOCIETE FR"
31
############################### COMPANY 2 ###############################
33
@multicompany_base_finance_chart
34
Scenario: GENERATE ACCOUNT CHART MA SOCIETE CH
35
Given I need a "res.company" with oid: scen.CH_company
38
| name | MA SOCIETE CH |
40
Given I need a "account.fiscalyear" with oid: scenario.CHfy2013
45
| date_start | 2013-01-01 |
46
| date_stop | 2013-12-31 |
47
| company_id | by oid: scen.CH_company |
49
And I create monthly periods on the fiscal year with reference "scenario.CHfy2013"
50
Then I find a "account.fiscalyear" with oid: scenario.CHfy2013
52
Given I have the module account installed
53
And no account set for company "MA SOCIETE CH"
54
And I want to generate account chart from chart template named "Plan comptable STERCHI" with "6" digits for company "MA SOCIETE CH"
55
When I generate the chart
56
Then accounts should be available for company "MA SOCIETE CH"