fields
This commit is contained in:
parent
824dbc7cda
commit
ebb8b20e14
@ -16,17 +16,6 @@ class ResPartner(models.Model):
|
||||
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)
|
||||
|
||||
@ -34,12 +23,6 @@ class ResPartner(models.Model):
|
||||
('worker', 'Worker'), ('member', 'Member'),
|
||||
('volunteer', 'Volunteer'),
|
||||
('visitor', 'Visitor')])
|
||||
company_name = fields.Char('Company')
|
||||
job = fields.Char()
|
||||
|
||||
|
||||
url = fields.Char('URL')
|
||||
|
||||
|
||||
|
||||
@api.constrains('contact_date')
|
||||
|
@ -7,10 +7,13 @@
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref ="base.view_partner_form" />
|
||||
<field name="arch" type="xml">
|
||||
<form string="Partners">
|
||||
<sheet>
|
||||
<group name="group_left">
|
||||
</group>
|
||||
<group>
|
||||
<field name="contact_date" />
|
||||
<field name="coworker_type" />
|
||||
<field name="url" />
|
||||
|
||||
</group>
|
||||
|
||||
<notebook position="inside">
|
||||
<page string="Events" name="Events">
|
||||
<group name="events">
|
||||
@ -18,8 +21,7 @@
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
</form>
|
||||
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user