[MIG] module_analysis: Migration to 13.0

pull/2608/head
Telmo Santos 2021-01-07 10:32:18 +01:00 committed by Florian da Costa
parent 8fc7d87806
commit cc4894be8d
14 changed files with 32 additions and 42 deletions

View File

@ -14,16 +14,16 @@ Module Analysis
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
:target: https://github.com/OCA/server-tools/tree/12.0/module_analysis :target: https://github.com/OCA/server-tools/tree/13.0/module_analysis
:alt: OCA/server-tools :alt: OCA/server-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-module_analysis :target: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-module_analysis
:alt: Translate me on Weblate :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/149/12.0 :target: https://runbot.odoo-community.org/runbot/149/13.0
:alt: Try me on Runbot :alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5| |badge1| |badge2| |badge3| |badge4| |badge5|
This module allows you to know 'how much code' is running on your Odoo This module allows you to know 'how much code' is running on your Odoo
instance, group by 'Type' (Odoo Core, OCA, other...) instance, group by 'Type' (Odoo Core, OCA, other...)
@ -35,22 +35,22 @@ This module can be usefull in the following cases :
* To evaluate the amount to pay to odoo to upgrade your custom code, or the * To evaluate the amount to pay to odoo to upgrade your custom code, or the
induced workload induced workload
.. image:: https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/installed_modules_by_types.png .. image:: https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/installed_modules_by_types.png
For that purpose, it adds new concepts For that purpose, it adds new concepts
* ``ir.module.author``, based on the value ``author`` present in the manifest * ``ir.module.author``, based on the value ``author`` present in the manifest
file. file.
.. image:: https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/module_authors.png .. image:: https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/module_authors.png
* ``ir.module.type``, populated by default with Odoo and OCA values. * ``ir.module.type``, populated by default with Odoo and OCA values.
.. image:: https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/module_types.png .. image:: https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/module_types.png
Each installed modules have extra data in the 'Technical Data' tab : Each installed modules have extra data in the 'Technical Data' tab :
.. image:: https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/module_form.png .. image:: https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/module_form.png
**Table of contents** **Table of contents**
@ -74,13 +74,13 @@ it information.
This module comes with default rules. This module comes with default rules.
.. image:: https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/default_module_type_rules.png .. image:: https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/default_module_type_rules.png
You can add your custom rules to identify the modules your team have You can add your custom rules to identify the modules your team have
developped for exemple, developped for exemple,
.. image:: https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/add_module_type_rules.png .. image:: https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/add_module_type_rules.png
to update the data, you have to : to update the data, you have to :
@ -89,7 +89,7 @@ to update the data, you have to :
* Check the box 'Analyse Installed modules' * Check the box 'Analyse Installed modules'
.. image:: https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/base_module_update.png .. image:: https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/base_module_update.png
This will update analysis of your installed modules. This will update analysis of your installed modules.
@ -124,7 +124,7 @@ Exclude files and directories
Two parameters are availaible in 'Settings' / 'Technical' / 'Parameters' Two parameters are availaible in 'Settings' / 'Technical' / 'Parameters'
'System Parameters' : 'System Parameters' :
.. image:: https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/config_parameters.png .. image:: https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/config_parameters.png
The list of folders and filename will be exclude from the analysis. The list of folders and filename will be exclude from the analysis.
You can change the default settings. You can change the default settings.
@ -136,9 +136,9 @@ Usage
Open the stats to analyse the detail of the code installed Open the stats to analyse the detail of the code installed
.. image:: https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/analysis_pivot.png .. image:: https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/analysis_pivot.png
.. image:: https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/analysis_pie.png .. image:: https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/analysis_pie.png
Bug Tracker Bug Tracker
@ -177,6 +177,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and mission is to support the collaborative development of Odoo features and
promote its widespread use. promote its widespread use.
This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/12.0/module_analysis>`_ project on GitHub. This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/13.0/module_analysis>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@ -9,7 +9,7 @@
" custom modules", " custom modules",
"author": "GRAP, Odoo Community Association (OCA)", "author": "GRAP, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/server-tools/", "website": "https://github.com/OCA/server-tools/",
"version": "12.0.1.0.0", "version": "13.0.1.0.0",
"license": "AGPL-3", "license": "AGPL-3",
"depends": ["base",], "depends": ["base",],
"data": [ "data": [

View File

@ -4,7 +4,7 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 12.0\n" "Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n" "Last-Translator: <>\n"
"Language-Team: \n" "Language-Team: \n"

View File

@ -4,7 +4,7 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 12.0\n" "Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2019-08-31 06:51+0000\n" "PO-Revision-Date: 2019-08-31 06:51+0000\n"
"Last-Translator: 黎伟杰 <674416404@qq.com>\n" "Last-Translator: 黎伟杰 <674416404@qq.com>\n"

View File

@ -2,7 +2,7 @@
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain) # @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models from odoo import fields, models
class BaseModuleUpdate(models.TransientModel): class BaseModuleUpdate(models.TransientModel):
@ -12,7 +12,6 @@ class BaseModuleUpdate(models.TransientModel):
string="Analyse Installed Modules", default=True string="Analyse Installed Modules", default=True
) )
@api.multi
def update_module(self): def update_module(self):
return super( return super(
BaseModuleUpdate, BaseModuleUpdate,

View File

@ -31,7 +31,6 @@ class IrModuleAuthor(models.Model):
), ),
] ]
@api.multi
@api.depends("installed_module_ids") @api.depends("installed_module_ids")
def _compute_installed_module_qty(self): def _compute_installed_module_qty(self):
for author in self: for author in self:

View File

@ -6,7 +6,7 @@ import logging
import os import os
from pathlib import Path from pathlib import Path
import pygount from pygount import SourceAnalysis
from odoo import api, fields, models from odoo import api, fields, models
from odoo.modules.module import get_module_path from odoo.modules.module import get_module_path
@ -82,7 +82,6 @@ class IrModuleModule(models.Model):
self.search([("state", "=", "installed")]).button_analyse_code() self.search([("state", "=", "installed")]).button_analyse_code()
return res return res
@api.multi
def write(self, vals): def write(self, vals):
res = super().write(vals) res = super().write(vals)
if vals.get("state", False) == "installed": if vals.get("state", False) == "installed":
@ -94,7 +93,6 @@ class IrModuleModule(models.Model):
return res return res
# Public Section # Public Section
@api.multi
def button_analyse_code(self): def button_analyse_code(self):
IrModuleAuthor = self.env["ir.module.author"] IrModuleAuthor = self.env["ir.module.author"]
IrModuleTypeRule = self.env["ir.module.type.rule"] IrModuleTypeRule = self.env["ir.module.type.rule"]
@ -139,7 +137,7 @@ class IrModuleModule(models.Model):
) )
for file_path, file_ext in file_list: for file_path, file_ext in file_list:
file_res = pygount.source_analysis( file_res = file_res = SourceAnalysis.from_file(
file_path, "", encoding=self._get_module_encoding(file_ext) file_path, "", encoding=self._get_module_encoding(file_ext)
) )
for k, v in analysed_datas.get(file_ext).items(): for k, v in analysed_datas.get(file_ext).items():

View File

@ -24,7 +24,6 @@ class IrModuleType(models.Model):
string="Modules Quantity", compute="_compute_installed_module_qty", store=True string="Modules Quantity", compute="_compute_installed_module_qty", store=True
) )
@api.multi
@api.depends("installed_module_ids.module_type_id") @api.depends("installed_module_ids.module_type_id")
def _compute_installed_module_qty(self): def _compute_installed_module_qty(self):
for module_type in self: for module_type in self:

View File

@ -19,7 +19,6 @@ class IrModuleType(models.Model):
string="Module type", comodel_name="ir.module.type", required=True string="Module type", comodel_name="ir.module.type", required=True
) )
@api.multi
def _get_module_type_id_from_module(self, module): def _get_module_type_id_from_module(self, module):
IrModuleModule = self.env["ir.module.module"] IrModuleModule = self.env["ir.module.module"]
for rule in self: for rule in self:

View File

@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !! !! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !! !! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/server-tools/tree/12.0/module_analysis"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-module_analysis"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/149/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/server-tools/tree/13.0/module_analysis"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/server-tools-13-0/server-tools-13-0-module_analysis"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/149/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module allows you to know how much code is running on your Odoo <p>This module allows you to know how much code is running on your Odoo
instance, group by Type (Odoo Core, OCA, other…)</p> instance, group by Type (Odoo Core, OCA, other…)</p>
<p>This module can be usefull in the following cases :</p> <p>This module can be usefull in the following cases :</p>
@ -377,19 +377,19 @@ instance, group by Type (Odoo Core, OCA, other…)</p>
<li>To evaluate the amount to pay to odoo to upgrade your custom code, or the <li>To evaluate the amount to pay to odoo to upgrade your custom code, or the
induced workload</li> induced workload</li>
</ul> </ul>
<img alt="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/installed_modules_by_types.png" src="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/installed_modules_by_types.png" /> <img alt="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/installed_modules_by_types.png" src="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/installed_modules_by_types.png" />
<p>For that purpose, it adds new concepts</p> <p>For that purpose, it adds new concepts</p>
<ul class="simple"> <ul class="simple">
<li><tt class="docutils literal">ir.module.author</tt>, based on the value <tt class="docutils literal">author</tt> present in the manifest <li><tt class="docutils literal">ir.module.author</tt>, based on the value <tt class="docutils literal">author</tt> present in the manifest
file.</li> file.</li>
</ul> </ul>
<img alt="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/module_authors.png" src="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/module_authors.png" /> <img alt="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/module_authors.png" src="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/module_authors.png" />
<ul class="simple"> <ul class="simple">
<li><tt class="docutils literal">ir.module.type</tt>, populated by default with Odoo and OCA values.</li> <li><tt class="docutils literal">ir.module.type</tt>, populated by default with Odoo and OCA values.</li>
</ul> </ul>
<img alt="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/module_types.png" src="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/module_types.png" /> <img alt="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/module_types.png" src="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/module_types.png" />
<p>Each installed modules have extra data in the Technical Data tab :</p> <p>Each installed modules have extra data in the Technical Data tab :</p>
<img alt="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/module_form.png" src="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/module_form.png" /> <img alt="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/module_form.png" src="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/module_form.png" />
<p><strong>Table of contents</strong></p> <p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents"> <div class="contents local topic" id="contents">
<ul class="simple"> <ul class="simple">
@ -423,12 +423,12 @@ file.</li>
it information.</p> it information.</p>
<p>This module comes with default rules.</p> <p>This module comes with default rules.</p>
<blockquote> <blockquote>
<img alt="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/default_module_type_rules.png" src="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/default_module_type_rules.png" /> <img alt="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/default_module_type_rules.png" src="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/default_module_type_rules.png" />
</blockquote> </blockquote>
<p>You can add your custom rules to identify the modules your team have <p>You can add your custom rules to identify the modules your team have
developped for exemple,</p> developped for exemple,</p>
<blockquote> <blockquote>
<img alt="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/add_module_type_rules.png" src="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/add_module_type_rules.png" /> <img alt="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/add_module_type_rules.png" src="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/add_module_type_rules.png" />
</blockquote> </blockquote>
<p>to update the data, you have to :</p> <p>to update the data, you have to :</p>
<ul> <ul>
@ -436,7 +436,7 @@ developped for exemple,</p>
</li> </li>
<li><p class="first">Check the box Analyse Installed modules</p> <li><p class="first">Check the box Analyse Installed modules</p>
<blockquote> <blockquote>
<img alt="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/base_module_update.png" src="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/base_module_update.png" /> <img alt="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/base_module_update.png" src="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/base_module_update.png" />
</blockquote> </blockquote>
</li> </li>
</ul> </ul>
@ -468,7 +468,7 @@ files), create a custom modules and overload the module model :</p>
<p>Two parameters are availaible in Settings / Technical / Parameters <p>Two parameters are availaible in Settings / Technical / Parameters
System Parameters :</p> System Parameters :</p>
<blockquote> <blockquote>
<img alt="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/config_parameters.png" src="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/config_parameters.png" /> <img alt="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/config_parameters.png" src="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/config_parameters.png" />
</blockquote> </blockquote>
<p>The list of folders and filename will be exclude from the analysis. <p>The list of folders and filename will be exclude from the analysis.
You can change the default settings.</p> You can change the default settings.</p>
@ -481,8 +481,8 @@ You can change the default settings.</p>
</ul> </ul>
<p>Open the stats to analyse the detail of the code installed</p> <p>Open the stats to analyse the detail of the code installed</p>
<blockquote> <blockquote>
<img alt="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/analysis_pivot.png" src="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/analysis_pivot.png" /> <img alt="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/analysis_pivot.png" src="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/analysis_pivot.png" />
<img alt="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/analysis_pie.png" src="https://raw.githubusercontent.com/OCA/server-tools/12.0/module_analysis/static/description/analysis_pie.png" /> <img alt="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/analysis_pie.png" src="https://raw.githubusercontent.com/OCA/server-tools/13.0/module_analysis/static/description/analysis_pie.png" />
</blockquote> </blockquote>
</div> </div>
<div class="section" id="bug-tracker"> <div class="section" id="bug-tracker">
@ -514,7 +514,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and mission is to support the collaborative development of Odoo features and
promote its widespread use.</p> promote its widespread use.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/12.0/module_analysis">OCA/server-tools</a> project on GitHub.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-tools/tree/13.0/module_analysis">OCA/server-tools</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div> </div>
</div> </div>

View File

@ -38,7 +38,6 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="name">Modules Authors</field> <field name="name">Modules Authors</field>
<field name="type">ir.actions.act_window</field> <field name="type">ir.actions.act_window</field>
<field name="res_model">ir.module.author</field> <field name="res_model">ir.module.author</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field> <field name="view_mode">tree,form</field>
</record> </record>
<menuitem <menuitem

View File

@ -55,7 +55,6 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="type">ir.actions.act_window</field> <field name="type">ir.actions.act_window</field>
<field name="res_model">ir.module.module</field> <field name="res_model">ir.module.module</field>
<field name="domain">[('state', '=', 'installed')]</field> <field name="domain">[('state', '=', 'installed')]</field>
<field name="view_type">form</field>
<field name="view_mode">pivot,graph</field> <field name="view_mode">pivot,graph</field>
</record> </record>
<menuitem <menuitem

View File

@ -37,7 +37,6 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="name">Modules Types</field> <field name="name">Modules Types</field>
<field name="type">ir.actions.act_window</field> <field name="type">ir.actions.act_window</field>
<field name="res_model">ir.module.type</field> <field name="res_model">ir.module.type</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field> <field name="view_mode">tree,form</field>
</record> </record>
<menuitem <menuitem

View File

@ -19,7 +19,6 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="name">Modules Types Rules</field> <field name="name">Modules Types Rules</field>
<field name="type">ir.actions.act_window</field> <field name="type">ir.actions.act_window</field>
<field name="res_model">ir.module.type.rule</field> <field name="res_model">ir.module.type.rule</field>
<field name="view_type">form</field>
<field name="view_mode">tree</field> <field name="view_mode">tree</field>
</record> </record>
<menuitem <menuitem