graph et pivot add view pivot
This commit is contained in:
parent
83c684ff7d
commit
7d52c03561
@ -31,12 +31,12 @@ class ResPartner(models.Model):
|
|||||||
|
|
||||||
full_contact_adress = fields.Char(compute='_compute_full_contact_adress')
|
full_contact_adress = fields.Char(compute='_compute_full_contact_adress')
|
||||||
|
|
||||||
# @api.depends('is_coworker')
|
@api.depends('is_coworker')
|
||||||
# def _compute_coworker_count(self):
|
def _compute_coworker_count(self):
|
||||||
# """ Computes number of coworker """
|
""" Computes number of coworker """
|
||||||
# for res_partner in self:
|
for res_partner in self:
|
||||||
# if res_partner.partner_id is self.is_coworker():
|
if self.is_coworker():
|
||||||
# self.coworker_count = len(res_partner.partner_id)
|
self.coworker_count = len(self.is_coworker)
|
||||||
|
|
||||||
@api.depends('street', 'zip', 'city')
|
@api.depends('street', 'zip', 'city')
|
||||||
def _compute_full_contact_adress(self):
|
def _compute_full_contact_adress(self):
|
||||||
|
@ -85,11 +85,22 @@
|
|||||||
<record id="view_graph_res_partner" model="ir.ui.view">
|
<record id="view_graph_res_partner" model="ir.ui.view">
|
||||||
<field name="name">res.partner.graph</field>
|
<field name="name">res.partner.graph</field>
|
||||||
<field name="model">res.partner</field>
|
<field name="model">res.partner</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<graph type="bar">
|
<graph type="bar">
|
||||||
<field name="is_coworker" />
|
<field name="is_coworker" />
|
||||||
<field name="is_coworker" type="measure" />
|
<field name="is_coworker" type="measure" />
|
||||||
</graph>
|
</graph>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<record id="view_pivot_res_partner" model="ir.ui.view">
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<pivot>
|
||||||
|
<field name="is_coworker" type="col" />
|
||||||
|
<field name="user_id" />
|
||||||
|
<field name="date_deadline" interval="week" />
|
||||||
|
<field name="effort_estimate" type="measure" />
|
||||||
|
</pivot>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user