diff --git a/models/enercoop_operation.py b/models/enercoop_operation.py index 07e78ec67f4e381104b7cdbedd291fcf04442066..39ac8f73c3b617377596b8d6ccb605ba9fd43447 100644 --- a/models/enercoop_operation.py +++ b/models/enercoop_operation.py @@ -14,7 +14,6 @@ class EnercoopOperation(models.Model): comodel_name='enercoop.actu', inverse_name='operation_id', string="Liste des actualités", - auto_join=True ) # ------------------------------------------------------ # SQL Constraints diff --git a/views/enercoop_operation_views.xml b/views/enercoop_operation_views.xml index f71f4f50def8df6cc5c294918e358c5bb580efab..ad3b3d4de367800445cfba29a86e609820b3e79c 100644 --- a/views/enercoop_operation_views.xml +++ b/views/enercoop_operation_views.xml @@ -9,7 +9,8 @@ <field name="arch" type="xml"> <notebook position="inside"> <page name="actus" string="Actualités"> - <field name="actu_ids" widget="one2many" > + <field name="actu_ids" mode="tree" + context="{'default_operation_id': active_id}"> <tree string="Actualités" editable="bottom"> <field name="name"/> </tree>