[IMP]GOLEM Activity : order by defautl code then name then id

This commit is contained in:
Fabien BOURGEOIS 2018-08-09 11:27:24 +02:00
parent 5ca67d5a48
commit 3ccce89bf1
2 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,7 @@
'name': 'GOLEM activities',
'summary': 'Extends Odoo products for multi-activity',
'description': 'Extends Odoo products for multi-activity',
'version': '10.0.2.5.0',
'version': '10.0.2.5.1',
'category': 'GOLEM',
'author': 'Fabien Bourgeois, Michel Dessenne',
'license': 'AGPL-3',

View File

@ -50,6 +50,7 @@ class GolemActivity(models.Model):
_description = 'GOLEM Activity'
_inherit = 'mail.thread'
_inherits = {'product.template': 'product_id'}
_order = 'default_code, name, id'
_rec_name = 'full_name'
product_id = fields.Many2one('product.template', required=True,