~florent.x/oerpscenario/trunk-with-buildout2

« back to all changes in this revision

Viewing changes to features/04_multicompany_base_finance_setup/x01_l10n_install.feature

  • Committer: Vincent Renaville
  • Date: 2013-02-08 09:11:32 UTC
  • mfrom: (286.1.7 trunk-python)
  • Revision ID: vincent.renaville@camptocamp.com-20130208091132-rsv9bb2rma6d2j9w
[MRG] cleaning scenario for multi company 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
###############################################################################
 
2
#
 
3
#    OERPScenario, OpenERP Functional Tests
 
4
#    Copyright 2009 Camptocamp SA
 
5
#
 
6
##############################################################################
 
7
 
 
8
# Features Generic tags (none for all)
 
9
##############################################################################
 
10
# Branch      # Module       # Processes     # System
 
11
@multicompany_base_finance
 
12
 
 
13
Feature: INSTALL OF LOCALISATION MODULES IN MULTI-COMPANY ENVIRONNEMENT
 
14
 
 
15
############################### COMPANY 1 ###############################
 
16
 
 
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
 
20
    And having:
 
21
         | name                        | value                                          |
 
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"
 
30
 
 
31
############################### COMPANY 2 ###############################
 
32
 
 
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
 
36
    And having:
 
37
         | name | value                  |
 
38
         | name | MA SOCIETE CH          |
 
39
 
 
40
    Given I need a "account.fiscalyear" with oid: scenario.CHfy2013
 
41
    And having:
 
42
       | name       |                   value |
 
43
       | name       |                    2013 |
 
44
       | code       |                    2013 |
 
45
       | date_start |              2013-01-01 |
 
46
       | date_stop  |              2013-12-31 |
 
47
       | company_id | by oid: scen.CH_company |
 
48
 
 
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
 
51
 
 
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"
 
57
 
 
58