Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions project_parent_adj/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# -*- coding: utf-8 -*-
21 changes: 21 additions & 0 deletions project_parent_adj/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
# Copyright 2019 Quartile Limited
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
'name': 'Project Parent Adjust',
'description': """
- Hide Parent Project field (expected to be temporarily).
""",
'version': '10.0.1.0.1',
'license': 'AGPL-3',
'category': 'project',
'author': 'Quartile Limited',
'website': 'https://www.quartile.co',
'depends': [
'project_parent',
],
'data': [
'views/project_project_views.xml',
]
}
26 changes: 26 additions & 0 deletions project_parent_adj/views/project_project_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<record id="view_project_parent_edit_project" model="ir.ui.view">
<field name="name">project.project.form</field>
<field name="model">project.project</field>
<field name="inherit_id" ref="project_parent.view_project_parent_edit_project"/>
<field name="arch" type="xml">
<field name="parent_project_id" position="attributes">
<attribute name="invisible">1</attribute>
</field>
</field>
</record>

<record id="view_project_parent_inherited_tree" model="ir.ui.view">
<field name="name">project.project.tree.inherited</field>
<field name="model">project.project</field>
<field name="inherit_id" ref="project_parent.view_project_parent_inherited_tree"/>
<field name="arch" type="xml">
<field name="parent_project_id" position="attributes">
<attribute name="invisible">1</attribute>
</field>
</field>
</record>

</odoo>