This commit is contained in:
michel 2017-11-06 12:49:45 +01:00
parent 5960956092
commit 28d2f09121
2 changed files with 15 additions and 3 deletions

View File

@ -17,7 +17,7 @@ class Coworker(models.Model):
('visitor', 'Visitor')])
company_name = fields.Char('Company')
job = fields.Char()
contact_date = fields.Date()
street = fields.Char()
postal_code = fields.Char()
city = fields.Char()

View File

@ -10,7 +10,7 @@
<sheet>
<group name="group_top">
<group name="group_left">
<field name="create_date" readonly="1" />
<field name="contact_date" />
<field name="name" />
<field name="firstname" />
<field name="coworker_type" />
@ -35,5 +35,17 @@
</form>
</field>
</record>
<record id="view_tree_coworker" model="ir.ui.view">
<field name="name">Coworker Tree</field>
<field name="model">coworking.coworker</field>
<field name="arch" type="xml">
<tree>
<field name="name" />
<field name="firstname" />
<field name="company_name" />
<field name="gsm" />
<field name="email" />
</tree>
</field>
</record>
</odoo>