Browse Source

[MIG] agreement_project migration

pull/305/head
Yves Goldberg 6 years ago
parent
commit
cd7a8a6015
  1. 6
      agreement_project/__manifest__.py
  2. 1
      agreement_project/readme/CONTRIBUTORS.rst
  3. 2
      agreement_project/views/agreement_view.xml
  4. 26
      agreement_project/views/project_view.xml

6
agreement_project/__manifest__.py

@ -4,13 +4,14 @@
{
'name': 'Agreement - Project',
'summary': 'Link projects to an agreement',
'version': '11.0.0.0.1',
'version': '12.0.1.0.0',
'category': 'Contract',
'author': 'Open Source Integrators, '
'Yves Goldberg (Ygol Internetwork), '
'Odoo Community Association (OCA)',
'website': 'https://github.com/OCA/contract',
'depends': [
'agreement',
'agreement_legal',
'project',
],
'data': [
@ -22,6 +23,7 @@
'development_status': 'Beta',
'maintainers': [
'smangukiya',
'ygol',
'max3903',
],
}

1
agreement_project/readme/CONTRIBUTORS.rst

@ -1 +1,2 @@
* Sandip Mangukiya <smangukiya@opensourceintegrators.com>
* Yves Goldberg <yves@ygol.com>

2
agreement_project/views/agreement_view.xml

@ -19,7 +19,7 @@
<record id="partner_agreement_form_view_task" model="ir.ui.view">
<field name="name">agreement.form.task</field>
<field name="model">agreement</field>
<field name="inherit_id" ref="agreement.partner_agreement_form_view"/>
<field name="inherit_id" ref="agreement_legal.partner_agreement_form_view"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside">
<button name="%(action_project_task_agreement_specific)d"

26
agreement_project/views/project_view.xml

@ -13,30 +13,4 @@
</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"/>
<field name="serviceprofile_id"
domain="[('agreement_id', '=', agreement_id)]"/>
</xpath>
</field>
</record>
<!-- Inherit project task search view-->
<record id="view_task_search_form_agreement" model="ir.ui.view">
<field name="name">project.task.select.agreement</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project.view_task_search_form"/>
<field name="arch" type="xml">
<xpath expr="//group" position="inside">
<filter string="Service Profile" domain="[]"
context="{'group_by':'serviceprofile_id'}"/>
</xpath>
</field>
</record>
</odoo>
Loading…
Cancel
Save