diff --git a/addons/product/models/product.py b/addons/product/models/product.py index 6fcfbd3457e..b817bc0022d 100644 --- a/addons/product/models/product.py +++ b/addons/product/models/product.py @@ -253,7 +253,7 @@ class ProductProduct(models.Model): def _compute_partner_ref(self): for supplier_info in self.seller_ids: if supplier_info.name.id == self._context.get('partner_id'): - product_name = supplier_info.product_name or self.default_code + product_name = supplier_info.product_name or self.default_code or self.name break else: product_name = self.name diff --git a/addons/purchase/views/purchase_views.xml b/addons/purchase/views/purchase_views.xml index c81044e36a1..d68375973b0 100644 --- a/addons/purchase/views/purchase_views.xml +++ b/addons/purchase/views/purchase_views.xml @@ -187,8 +187,8 @@
diff --git a/doc/reference/security.rst b/doc/reference/security.rst index bacb02c787f..fd6402893c3 100644 --- a/doc/reference/security.rst +++ b/doc/reference/security.rst @@ -71,8 +71,6 @@ This means the first *group rule* restricts access, but any further .. warning:: record rules do not apply to the Administrator user :class: aphorism - although access rules do - .. _reference/security/fields: Field Access diff --git a/odoo/modules/loading.py b/odoo/modules/loading.py index 2c4f6a26e28..3f073a30c93 100644 --- a/odoo/modules/loading.py +++ b/odoo/modules/loading.py @@ -388,7 +388,7 @@ def load_modules(db, force_demo=False, status=None, update_module=False): cr.execute("""select model,name from ir_model where id NOT IN (select distinct model_id from ir_model_access)""") for (model, name) in cr.fetchall(): if model in registry and not registry[model]._abstract and not registry[model]._transient: - _logger.warning('The model %s has no access rules, consider adding one. E.g. access_%s,access_%s,model_%s,,1,0,0,0', + _logger.warning('The model %s has no access rules, consider adding one. E.g. access_%s,access_%s,model_%s,base.group_user,1,0,0,0', model, model.replace('.', '_'), model.replace('.', '_'), model.replace('.', '_')) # Temporary warning while we remove access rights on osv_memory objects, as they have