From 51a242242867f5d1bca6ceace2b66284f333b98a Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sun, 29 Mar 2020 06:05:40 +0000 Subject: [PATCH] [UPD] README.rst --- base_m2m_custom_field/static/description/index.html | 12 ++++++------ configuration_helper/static/description/index.html | 2 +- module_analysis/static/description/index.html | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/base_m2m_custom_field/static/description/index.html b/base_m2m_custom_field/static/description/index.html index 920843ea0..b76f3e2d6 100644 --- a/base_m2m_custom_field/static/description/index.html +++ b/base_m2m_custom_field/static/description/index.html @@ -397,7 +397,7 @@ is needed, for example to be editable in a dedicated tree view.

'my_model_a_b_rel', 'my_model_a_id', 'my_model_b_id', - create_table=False, + create_table=False, ) @@ -410,7 +410,7 @@ is needed, for example to be editable in a dedicated tree view.

'my_model_a_b_rel', 'my_model_b_id', 'my_model_a_id', - create_table=False, + create_table=False, ) @@ -420,13 +420,13 @@ is needed, for example to be editable in a dedicated tree view.

my_model_a_id = fields.Many2one( 'my.model.a', - required=True, - index=True, # Index is mandatory here + required=True, + index=True, # Index is mandatory here ) my_model_b_id = fields.Many2one( 'my.model.b', - required=True, - index=True, # Index is mandatory here + required=True, + index=True, # Index is mandatory here )

By setting create_table=False on the Many2manyCustom field, and using the diff --git a/configuration_helper/static/description/index.html b/configuration_helper/static/description/index.html index 37fcf3fdd..858907f0b 100644 --- a/configuration_helper/static/description/index.html +++ b/configuration_helper/static/description/index.html @@ -397,7 +397,7 @@ using those defined in ‘res.company’: it avoids duplicated field definitions

Usage

-from . company import ResCompany
+from . company import ResCompany
 
 class WhatiwantConfigSettings(models.TransientModel):
     _inherit = ['res.config.settings', 'abstract.config.settings']
diff --git a/module_analysis/static/description/index.html b/module_analysis/static/description/index.html
index 11af0d467..4e596fd28 100644
--- a/module_analysis/static/description/index.html
+++ b/module_analysis/static/description/index.html
@@ -454,7 +454,7 @@ files), create a custom modules and overload the module model :

xml_documentation_qty = fields.Integer( string='Quantity of Comments in XML Files') - @api.model + @api.model def _get_analyse_settings(self): res = super()._get_analyse_settings() if not '.html' in res: