Skip to content

Commit

Permalink
Merge 38d9d65 into 1a7b826
Browse files Browse the repository at this point in the history
  • Loading branch information
SilvioGregorini committed Jan 2, 2020
2 parents 1a7b826 + 38d9d65 commit 0b7715c
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fields_relation_data/__init__.py
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).
20 changes: 20 additions & 0 deletions fields_relation_data/__manifest__.py
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,
}
1 change: 1 addition & 0 deletions fields_relation_data/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Silvio Gregorini <https://github.com/SilvioGregorini>
3 changes: 3 additions & 0 deletions fields_relation_data/readme/CREDITS.rst
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>
3 changes: 3 additions & 0 deletions fields_relation_data/readme/DESCRIPTION.rst
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.
17 changes: 17 additions & 0 deletions fields_relation_data/views/ir_model.xml
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>
17 changes: 17 additions & 0 deletions fields_relation_data/views/ir_model_fields.xml
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>

0 comments on commit 0b7715c

Please sign in to comment.