forked from Yaltik/golem
[Analyses pour la ville] small improvment
This commit is contained in:
parent
06e0116283
commit
c46d91bc50
@ -20,16 +20,8 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
from odoo import models, fields, api, _
|
from odoo import models, fields, api, _
|
||||||
from odoo.exceptions import UserError, ValidationError
|
|
||||||
from dateutil.relativedelta import relativedelta
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
def get_root_category(category_id):
|
|
||||||
""" Get Root Category """
|
|
||||||
if not category_id.parent_id:
|
|
||||||
return category_id
|
|
||||||
return get_root_category(category_id.parent_id)
|
|
||||||
|
|
||||||
class GolemMemberAnalysis(models.TransientModel):
|
class GolemMemberAnalysis(models.TransientModel):
|
||||||
""" GOLEM Member Analysis Adaptation """
|
""" GOLEM Member Analysis Adaptation """
|
||||||
_inherit = 'golem.member.analysis'
|
_inherit = 'golem.member.analysis'
|
||||||
|
Loading…
Reference in New Issue
Block a user