-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Copyright 2019 Silvio Gregorini <silviogregorini@openforce.it> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright 2019 Silvio Gregorini <silviogregorini@openforce.it> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). | ||
|
||
{ | ||
'name': 'Fields Relation Data', | ||
'summary': "Show relations data in ir.model.fields tree views", | ||
'version': '12.0.1.0.0', | ||
'category': 'Tools', | ||
'author': 'Openforce, Odoo Community Association (OCA)', | ||
'website': 'https://github.com/OCA/server-tools', | ||
'license': 'AGPL-3', | ||
'depends': [ | ||
'base' | ||
], | ||
'data': [ | ||
'views/ir_model.xml', | ||
'views/ir_model_fields.xml', | ||
], | ||
'installable': True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* Silvio Gregorini <https://github.com/SilvioGregorini> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
The development of this module has been financially supported by: | ||
|
||
* Openforce Srls Unipersonale <https://www.openforce.it> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
**Technical Module** | ||
|
||
Allows an easier way to find relational fields' data from both `ir.model.fields` tree view and `ir.model` form view. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
|
||
<record id="view_model_form_inherit" model="ir.ui.view"> | ||
<field name="name">view.model.form.inherit</field> | ||
<field name="model">ir.model</field> | ||
<field name="inherit_id" ref="base.view_model_form"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='field_id']/tree/field[@name='ttype']" position="after"> | ||
<field name="relation"/> | ||
<field name="relation_field"/> | ||
<field name="relation_table"/> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
|
||
<record id="view_model_fields_tree_inherit" model="ir.ui.view"> | ||
<field name="name">view.model.fields.tree.inherit</field> | ||
<field name="model">ir.model.fields</field> | ||
<field name="inherit_id" ref="base.view_model_fields_tree"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='ttype']" position="after"> | ||
<field name="relation"/> | ||
<field name="relation_field"/> | ||
<field name="relation_table"/> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
</odoo> |