[7.0] Boolean fields set to False take their default values when importing data from yaml
Bug #1104292 reported by
Egor Tsinko
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
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 |
To post a comment you must log in.
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