From eb5e82bfa79051f33e4cf60b20e9949ce034e1e2 Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Mon, 20 Aug 2018 10:52:22 +0200 Subject: [PATCH] [IMP]GOLEM Activity Registration Custom Price : copy price lignes --- golem_activity_registration_custom_price/__manifest__.py | 2 +- .../models/golem_activity.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/golem_activity_registration_custom_price/__manifest__.py b/golem_activity_registration_custom_price/__manifest__.py index b3c7d92..c84a32e 100644 --- a/golem_activity_registration_custom_price/__manifest__.py +++ b/golem_activity_registration_custom_price/__manifest__.py @@ -24,7 +24,7 @@ - allow set price per area and slice ; - computes automatically applicable price ; - anticipate ruleset to be implemented for computing.''', - 'version': '10.0.0.1.1', + 'version': '10.0.0.1.2', 'category': 'GOLEM', 'author': 'Fabien Bourgeois', 'license': 'AGPL-3', diff --git a/golem_activity_registration_custom_price/models/golem_activity.py b/golem_activity_registration_custom_price/models/golem_activity.py index d4ee2ee..f2cd473 100644 --- a/golem_activity_registration_custom_price/models/golem_activity.py +++ b/golem_activity_registration_custom_price/models/golem_activity.py @@ -24,7 +24,8 @@ class GolemActivity(models.Model): _inherit = 'golem.activity' price_line_ids = fields.One2many('golem.activity.price.line', - 'activity_id', string='Price lines') + 'activity_id', string='Price lines', + copy=True) @api.multi def reset_price_combinations(self):