[7.0] Boolean fields set to False take their default values when importing data from yaml

Bug #1104292 reported by Egor Tsinko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Medium
OpenERP's Framework R&D

Bug Description

1. Create a yaml file with the following data:
-
  !record {model: res.partner, id: test}:
    is_company: True
    name: Test Supplier
    supplier: True
    customer: False

2. Create a module that uses the previous yml file as 'update_xml'
3. Install that module
4. Note that the partner 'Test Supplier' will have both 'suplier' and 'customer' fields set to True

Egor Tsinko (etsinko)
no longer affects: openobject-addons
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Egor Tsinko (etsinko) wrote :

I found that adding view: False to the record solves this problem:
-
  !record {model: res.partner, id: test, view: False}:
    is_company: True
    name: Test Supplier
    supplier: True
    customer: False

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.