"I find a" or "I need a" ignore active records

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

Bug Description

Concerns the phrases:

* I find a "{model_name}" with {domain}
* I need a "{model_name}" with {domain}
* "by " in tables

Current behavior:
The searches ignore all the records whose field 'active' is False.

Expected:
When I search by xmlid / id, I expect it to find the record even if it deactivated.
When I search by another field, I'm not sure what should be the behavior.

Example of consequences:
I have a scenario which create a payment method:

    I need a "payment.method" with oid: scenario.method_x
    And having:
    | key | value |
    | name | x |
    | active | 0 |

When I run the scenario the first time, it creates the record.
When I run the scenario the second time, it tries to create it again, resulting in:

    except_osv: ('Constraint Error', 'You cannot have multiple records with the same external ID in the same module!')

Related branches

Revision history for this message
Leonardo Pistone (lepistone) wrote :

Guewen,
this issue has a merged branch. Can we close it?

Thanks!

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Yep, I close it.

Changed in oerpscenario:
status: New → Fix Released
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.