many2one in tables (by oid: value...) does not assert existence

Bug #1256946 reported by Guewen Baconnier @ Camptocamp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OERPScenario
New
Undecided
Unassigned

Bug Description

Example:

  @rule @vat @ch
  Scenario: Create the fiscal position rule for 8.0% â 7.6%
    Given I am configuring the company with ref "scenario.comp_ch"
    Given I need a "account.fiscal.position.rule" with oid: scenario.fiscalpos_rule_76
    And having:
      | key | value |
      | name | TVA 7.6% avant 2011 |
      | description | Changement de TVA en suisse au 01.01.2011 |
      | company_id | by oid: scenario.comp_ch |
      | date_end | 2010-12-31 |
      | use_sale | True |
      | fiscal_position_id | by oid: scenario.fiscalpos_76 | # <----

If scenario.fiscalpos_76 does not exist, the account.fiscal.position.rule will be created with no fiscal position.

I expect the scenario to fail if the many2one relation is not found.

Related branches

description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.