This commit is contained in:
michel 2017-11-24 16:56:52 +01:00
parent 824dbc7cda
commit ebb8b20e14
2 changed files with 8 additions and 23 deletions

View File

@ -16,17 +16,6 @@ class ResPartner(models.Model):
inverse_name="parent_id", inverse_name="parent_id",
) )
#Adress fields
street = fields.Char()
zip = fields.Char()
city = fields.Char()
phone = fields.Char()
mobile = fields.Char('GSM')
email = fields.Char()
url = fields.Char('URL')
comment = fields.Text()
job = fields.Char()
contact_date = fields.Date(default=fields.Date.context_today) contact_date = fields.Date(default=fields.Date.context_today)
@ -34,12 +23,6 @@ class ResPartner(models.Model):
('worker', 'Worker'), ('member', 'Member'), ('worker', 'Worker'), ('member', 'Member'),
('volunteer', 'Volunteer'), ('volunteer', 'Volunteer'),
('visitor', 'Visitor')]) ('visitor', 'Visitor')])
company_name = fields.Char('Company')
job = fields.Char()
url = fields.Char('URL')
@api.constrains('contact_date') @api.constrains('contact_date')

View File

@ -7,10 +7,13 @@
<field name="model">res.partner</field> <field name="model">res.partner</field>
<field name="inherit_id" ref ="base.view_partner_form" /> <field name="inherit_id" ref ="base.view_partner_form" />
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Partners"> <group>
<sheet> <field name="contact_date" />
<group name="group_left"> <field name="coworker_type" />
</group> <field name="url" />
</group>
<notebook position="inside"> <notebook position="inside">
<page string="Events" name="Events"> <page string="Events" name="Events">
<group name="events"> <group name="events">
@ -18,8 +21,7 @@
</group> </group>
</page> </page>
</notebook> </notebook>
</sheet>
</form>
</field> </field>
</record> </record>