Browse Source

[FIX] add missing field + remove serviceprofile

pull/305/head
Yves Goldberg 6 years ago
parent
commit
dbb5c781e9
  1. 2
      agreement_project/models/project.py
  2. 11
      agreement_project/views/project_view.xml

2
agreement_project/models/project.py

@ -17,5 +17,3 @@ class ProjectTask(models.Model):
related="project_id.agreement_id",
string='Agreement',
store=True)
serviceprofile_id = fields.Many2one('agreement.serviceprofile',
'Service Profile')

11
agreement_project/views/project_view.xml

@ -12,5 +12,14 @@
</field>
</field>
</record>
<record id="view_task_form2_agreement" model="ir.ui.view">
<field name="name">project.task.form.agreement</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_form2"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='user_id']" position="after">
<field name="agreement_id" readonly="1"/>
</xpath>
</field>
</record>
</odoo>
Loading…
Cancel
Save