forked from michel/Coworking
whaouu
This commit is contained in:
parent
ebb8b20e14
commit
44042e87a8
@ -26,5 +26,5 @@
|
||||
'application': True,
|
||||
'installable': True,
|
||||
'data': [],
|
||||
'depends': ['coworking_coworker'] #'coworking_event']
|
||||
'depends': ['coworking_coworker', 'coworking_event']
|
||||
}
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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']
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""dd"""
|
||||
from . import event, coworker
|
||||
from . import event, res_partner
|
||||
|
@ -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')
|
@ -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">
|
@ -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']
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""dd"""
|
||||
from . import relation, coworker
|
||||
from . import relation, res_partner
|
||||
|
@ -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')
|
@ -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">
|
Loading…
Reference in New Issue
Block a user