"I find a" or "I need a" ignore active records
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
- Joël Grand-Guillaume @ camptocamp: Approve (code review, no tests)
- Nicolas Bessi - Camptocamp (community): Needs Fixing
-
Diff: 173 lines (+82/-10)1 file modifiedfeatures/steps/dsl.py (+82/-10)
Guewen,
this issue has a merged branch. Can we close it?
Thanks!