Filters list for Odoo API request could be built not correct in case there is an operator in a list in migration yml file.
Example:

source:
  plugin: odoo_api
  model: product.product
  filters:
    - '|'
    -
      - active
      - '='
      - 0
    -
      - active
      - '='
      - 1

Comments

nikita_tt created an issue. See original summary.

nikita_tt’s picture

abramm’s picture

Assigned: nikita_tt » Unassigned
Status: Active » Needs review

We discussed this issue with @nikita_tt; the problem is that the domain filter is incorrectly applied if migration source filter contains operators.

  • abramm committed 0a4cf8d on 8.x-1.x authored by nikita_tt
    Issue #2998726 by nikita_tt, abramm: Polish notation in filters
    
abramm’s picture

Status: Needs review » Fixed
Issue tags: -migration

Fix commited. Thank you @nikita_tt.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.