[IMP]GOLEM Activity Registration Custom Price : copy price lignes

This commit is contained in:
Fabien BOURGEOIS 2018-08-20 10:52:22 +02:00
parent 78164bd55c
commit eb5e82bfa7
2 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,7 @@
- allow set price per area and slice ; - allow set price per area and slice ;
- computes automatically applicable price ; - computes automatically applicable price ;
- anticipate ruleset to be implemented for computing.''', - anticipate ruleset to be implemented for computing.''',
'version': '10.0.0.1.1', 'version': '10.0.0.1.2',
'category': 'GOLEM', 'category': 'GOLEM',
'author': 'Fabien Bourgeois', 'author': 'Fabien Bourgeois',
'license': 'AGPL-3', 'license': 'AGPL-3',

View File

@ -24,7 +24,8 @@ class GolemActivity(models.Model):
_inherit = 'golem.activity' _inherit = 'golem.activity'
price_line_ids = fields.One2many('golem.activity.price.line', price_line_ids = fields.One2many('golem.activity.price.line',
'activity_id', string='Price lines') 'activity_id', string='Price lines',
copy=True)
@api.multi @api.multi
def reset_price_combinations(self): def reset_price_combinations(self):