Skip to content

Commit

Permalink
[FIX] connector_importer: fix 'source_ref_id' field, don't store it t…
Browse files Browse the repository at this point in the history
…o not crash Odoo
  • Loading branch information
sebalix committed Jan 13, 2020
1 parent b0bdf5b commit b23c620
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion connector_importer/models/sources/source_mixin.py
Expand Up @@ -27,7 +27,10 @@ class ImportSourceConsumerMixin(models.AbstractModel):
string="Source",
compute="_compute_source_ref_id",
selection="_selection_source_ref_id",
store=True,
# NOTE: do not store a computed fields.Reference, Odoo crashes
# with an error message "Mixing appels and orange..." when performing
# a self.recompute() on such fields.
store=False,
)
source_config_summary = fields.Html(
compute="_compute_source_config_summary", readonly=True
Expand Down

0 comments on commit b23c620

Please sign in to comment.