This commit is contained in:
michel 2017-11-24 17:16:20 +01:00
parent ebb8b20e14
commit 44042e87a8
11 changed files with 26 additions and 27 deletions

View File

@ -26,5 +26,5 @@
'application': True,
'installable': True,
'data': [],
'depends': ['coworking_coworker'] #'coworking_event']
'depends': ['coworking_coworker', 'coworking_event']
}

View File

@ -16,6 +16,7 @@ class ResPartner(models.Model):
inverse_name="parent_id",
)
url = fields.Char('URL')
contact_date = fields.Date(default=fields.Date.context_today)

View File

@ -11,13 +11,11 @@
<field name="contact_date" />
<field name="coworker_type" />
<field name="url" />
</group>
<notebook position="inside">
<page string="Events" name="Events">
<group name="events">
<field name="job" />
</group>
</page>
</notebook>

View File

@ -28,7 +28,7 @@
'data': ['security/ir.model.access.csv',
'views/event_menu.xml',
'views/event_views.xml',
'views/coworker_views.xml',
'views/res_partner_views.xml',
'wizard/coworking_event_weekly_views.xml'],
'depends': ['coworking_coworker']
}

View File

@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
"""dd"""
from . import event, coworker
from . import event, res_partner

View File

@ -4,9 +4,9 @@
from odoo import models, fields, api
class Coworker(models.Model):
class ResPartner(models.Model):
""" Coworker adaptations """
_inherit = 'coworking.coworker'
_inherit = 'res.partner'
manager_event_ids = fields.One2many('coworking.event', 'manager_id',
string='Events managed')

View File

@ -2,10 +2,10 @@
<odoo>
<!-- Form -->
<record id="view_form_coworker" model="ir.ui.view">
<field name="name">Coworker Form adaptations</field>
<field name="model">coworking.coworker</field>
<field name="inherit_id" ref ="coworking_coworker.view_form_coworker" />
<record id="view_form_res_partner" model="ir.ui.view">
<field name="name">Res_partner Form</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref ="base.view_partner_form" />
<field name="arch" type="xml">
<notebook position="inside">
<page string="Events" name="Events">

View File

@ -26,8 +26,8 @@
'application': False,
'installable': True,
'data': ['security/ir.model.access.csv',
'views/relation_menu.xml',
# 'views/relation_menu.xml',
'views/relation_views.xml',
'views/coworker_views.xml'],
'views/res_partner_views.xml'],
'depends': ['coworking_coworker']
}

View File

@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
"""dd"""
from . import relation, coworker
from . import relation, res_partner

View File

@ -6,9 +6,9 @@ import logging
from odoo import models, fields, api
_LOGGER = logging.getLogger(__name__)
class Coworker(models.Model):
class ResPartner(models.Model):
""" Coworker adaptations """
_inherit = 'coworking.coworker'
_inherit = 'res.partner'
manager_event_ids = fields.One2many('coworking.event', 'manager_id',
string='Events managed')

View File

@ -3,10 +3,10 @@
<odoo>
<!-- Form -->
<record id="view_form_coworker" model="ir.ui.view">
<field name="name">Coworker Form adaptations</field>
<field name="model">coworking.coworker</field>
<field name="inherit_id" ref ="coworking_coworker.view_form_coworker" />
<record id="view_form_res_partner" model="ir.ui.view">
<field name="name">Res_partner Form adaptations</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref ="base.view_partner_form" />
<field name="arch" type="xml">
<notebook position="inside">
<page string="Relation" name="Relation">