whaouu
This commit is contained in:
parent
ebb8b20e14
commit
44042e87a8
@ -26,5 +26,5 @@
|
|||||||
'application': True,
|
'application': True,
|
||||||
'installable': True,
|
'installable': True,
|
||||||
'data': [],
|
'data': [],
|
||||||
'depends': ['coworking_coworker'] #'coworking_event']
|
'depends': ['coworking_coworker', 'coworking_event']
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ class ResPartner(models.Model):
|
|||||||
inverse_name="parent_id",
|
inverse_name="parent_id",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
url = fields.Char('URL')
|
||||||
|
|
||||||
contact_date = fields.Date(default=fields.Date.context_today)
|
contact_date = fields.Date(default=fields.Date.context_today)
|
||||||
|
|
||||||
|
@ -11,16 +11,14 @@
|
|||||||
<field name="contact_date" />
|
<field name="contact_date" />
|
||||||
<field name="coworker_type" />
|
<field name="coworker_type" />
|
||||||
<field name="url" />
|
<field name="url" />
|
||||||
|
|
||||||
</group>
|
</group>
|
||||||
|
<notebook position="inside">
|
||||||
|
<page string="Events" name="Events">
|
||||||
|
<group name="events">
|
||||||
|
|
||||||
<notebook position="inside">
|
</group>
|
||||||
<page string="Events" name="Events">
|
</page>
|
||||||
<group name="events">
|
</notebook>
|
||||||
<field name="job" />
|
|
||||||
</group>
|
|
||||||
</page>
|
|
||||||
</notebook>
|
|
||||||
|
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
'data': ['security/ir.model.access.csv',
|
'data': ['security/ir.model.access.csv',
|
||||||
'views/event_menu.xml',
|
'views/event_menu.xml',
|
||||||
'views/event_views.xml',
|
'views/event_views.xml',
|
||||||
'views/coworker_views.xml',
|
'views/res_partner_views.xml',
|
||||||
'wizard/coworking_event_weekly_views.xml'],
|
'wizard/coworking_event_weekly_views.xml'],
|
||||||
'depends': ['coworking_coworker']
|
'depends': ['coworking_coworker']
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""dd"""
|
"""dd"""
|
||||||
from . import event, coworker
|
from . import event, res_partner
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
from odoo import models, fields, api
|
from odoo import models, fields, api
|
||||||
|
|
||||||
class Coworker(models.Model):
|
class ResPartner(models.Model):
|
||||||
""" Coworker adaptations """
|
""" Coworker adaptations """
|
||||||
_inherit = 'coworking.coworker'
|
_inherit = 'res.partner'
|
||||||
|
|
||||||
manager_event_ids = fields.One2many('coworking.event', 'manager_id',
|
manager_event_ids = fields.One2many('coworking.event', 'manager_id',
|
||||||
string='Events managed')
|
string='Events managed')
|
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
<odoo>
|
<odoo>
|
||||||
<!-- Form -->
|
<!-- Form -->
|
||||||
<record id="view_form_coworker" model="ir.ui.view">
|
<record id="view_form_res_partner" model="ir.ui.view">
|
||||||
<field name="name">Coworker Form adaptations</field>
|
<field name="name">Res_partner Form</field>
|
||||||
<field name="model">coworking.coworker</field>
|
<field name="model">res.partner</field>
|
||||||
<field name="inherit_id" ref ="coworking_coworker.view_form_coworker" />
|
<field name="inherit_id" ref ="base.view_partner_form" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<notebook position="inside">
|
<notebook position="inside">
|
||||||
<page string="Events" name="Events">
|
<page string="Events" name="Events">
|
@ -26,8 +26,8 @@
|
|||||||
'application': False,
|
'application': False,
|
||||||
'installable': True,
|
'installable': True,
|
||||||
'data': ['security/ir.model.access.csv',
|
'data': ['security/ir.model.access.csv',
|
||||||
'views/relation_menu.xml',
|
# 'views/relation_menu.xml',
|
||||||
'views/relation_views.xml',
|
'views/relation_views.xml',
|
||||||
'views/coworker_views.xml'],
|
'views/res_partner_views.xml'],
|
||||||
'depends': ['coworking_coworker']
|
'depends': ['coworking_coworker']
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""dd"""
|
"""dd"""
|
||||||
from . import relation, coworker
|
from . import relation, res_partner
|
||||||
|
@ -6,9 +6,9 @@ import logging
|
|||||||
from odoo import models, fields, api
|
from odoo import models, fields, api
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
class Coworker(models.Model):
|
class ResPartner(models.Model):
|
||||||
""" Coworker adaptations """
|
""" Coworker adaptations """
|
||||||
_inherit = 'coworking.coworker'
|
_inherit = 'res.partner'
|
||||||
|
|
||||||
manager_event_ids = fields.One2many('coworking.event', 'manager_id',
|
manager_event_ids = fields.One2many('coworking.event', 'manager_id',
|
||||||
string='Events managed')
|
string='Events managed')
|
@ -3,10 +3,10 @@
|
|||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
<!-- Form -->
|
<!-- Form -->
|
||||||
<record id="view_form_coworker" model="ir.ui.view">
|
<record id="view_form_res_partner" model="ir.ui.view">
|
||||||
<field name="name">Coworker Form adaptations</field>
|
<field name="name">Res_partner Form adaptations</field>
|
||||||
<field name="model">coworking.coworker</field>
|
<field name="model">res.partner</field>
|
||||||
<field name="inherit_id" ref ="coworking_coworker.view_form_coworker" />
|
<field name="inherit_id" ref ="base.view_partner_form" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<notebook position="inside">
|
<notebook position="inside">
|
||||||
<page string="Relation" name="Relation">
|
<page string="Relation" name="Relation">
|
Loading…
Reference in New Issue
Block a user