diff --git a/README.md b/README.md index 5e94a1a73..ddad59a92 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ addon | version | maintainers | summary [web_calendar_slot_duration](web_calendar_slot_duration/) | 14.0.1.0.0 | [![Yajo](https://github.com/Yajo.png?size=30px)](https://github.com/Yajo) | Customizable calendar slot durations [web_company_color](web_company_color/) | 14.0.2.0.0 | | Web Company Color [web_copy_confirm](web_copy_confirm/) | 14.0.1.0.0 | | Show confirmation dialogue before copying records -[web_create_write_confirm](web_create_write_confirm/) | 14.0.1.0.0 | | Confirm/Alert pop-up before saving +[web_create_write_confirm](web_create_write_confirm/) | 14.0.1.1.0 | [![ilyasProgrammer](https://github.com/ilyasProgrammer.png?size=30px)](https://github.com/ilyasProgrammer) | Confirm/Alert pop-up before saving [web_decimal_numpad_dot](web_decimal_numpad_dot/) | 14.0.1.0.0 | | Allows using numpad dot to enter period decimal separator [web_dialog_size](web_dialog_size/) | 14.0.1.0.0 | | A module that lets the user expand a dialog box to the full screen width. [web_disable_export_group](web_disable_export_group/) | 14.0.2.0.0 | | Web Disable Export Group diff --git a/web_create_write_confirm/README.rst b/web_create_write_confirm/README.rst index 7f5b41dac..8587bc43c 100644 --- a/web_create_write_confirm/README.rst +++ b/web_create_write_confirm/README.rst @@ -7,7 +7,7 @@ Confirm/Alert pop-up before saving !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:7ffe943eb22ee465e35d6e7d5eeca244b46c04ac4b25c62a1afc5c214fa80ca9 + !! source digest: sha256:9a2b87a13801cefbe6e4daaeda2556665241e46995fa392222f939ea05134cb7 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -51,7 +51,7 @@ Confirm res.partner change: msg = self.env['popup.message'].create( { - 'model_id': self.env['ir.model'].search([('model', '=', 'res.partner')]).id, + 'model_id': self.env['ir.model']._get_id('res.partner') 'field_ids': [(6, 0, self.env['ir.model.fields'].search([('model', '=', 'res.partner')]).ids)], 'popup_type': 'confirm', 'title': 'Warning', @@ -66,7 +66,7 @@ Sale order alert: msg = self.env['popup.message'].create( { - 'model_id': self.env['ir.model'].search([('model', '=', 'sale.order')]).id, + 'model_id': self.env['ir.model']._get_id('sale.order'), 'field_ids': [(6, 0, self.env['ir.model.fields'].search([('model', '=', 'sale.order')]).ids)], 'popup_type': 'alert', 'title': 'Attention', @@ -116,6 +116,14 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. +.. |maintainer-ilyasProgrammer| image:: https://github.com/ilyasProgrammer.png?size=40px + :target: https://github.com/ilyasProgrammer + :alt: ilyasProgrammer + +Current `maintainer `__: + +|maintainer-ilyasProgrammer| + This module is part of the `OCA/web `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/web_create_write_confirm/__manifest__.py b/web_create_write_confirm/__manifest__.py index eb3dfa8ac..5e7024b38 100644 --- a/web_create_write_confirm/__manifest__.py +++ b/web_create_write_confirm/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Confirm/Alert pop-up before saving", - "version": "14.0.1.0.0", + "version": "14.0.1.1.0", "depends": ["web"], "author": "Smile, Odoo Community Association (OCA)", "maintainers": ["ilyasProgrammer"], diff --git a/web_create_write_confirm/static/description/index.html b/web_create_write_confirm/static/description/index.html index 351be3365..b36384575 100644 --- a/web_create_write_confirm/static/description/index.html +++ b/web_create_write_confirm/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:7ffe943eb22ee465e35d6e7d5eeca244b46c04ac4b25c62a1afc5c214fa80ca9 +!! source digest: sha256:9a2b87a13801cefbe6e4daaeda2556665241e46995fa392222f939ea05134cb7 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/web Translate me on Weblate Try me on Runboat

This module provides feature to create custom confirmation or alert dialog when user creates or writes record. @@ -396,7 +396,7 @@ Here is some examples how you can use this module features in your code.

 msg = self.env['popup.message'].create(
     {
-        'model_id': self.env['ir.model'].search([('model', '=', 'res.partner')]).id,
+        'model_id': self.env['ir.model']._get_id('res.partner')
         'field_ids': [(6, 0, self.env['ir.model.fields'].search([('model', '=', 'res.partner')]).ids)],
         'popup_type': 'confirm',
         'title': 'Warning',
@@ -409,7 +409,7 @@ Here is some examples how you can use this module features in your code.

 msg = self.env['popup.message'].create(
     {
-        'model_id': self.env['ir.model'].search([('model', '=', 'sale.order')]).id,
+        'model_id': self.env['ir.model']._get_id('sale.order'),
         'field_ids': [(6, 0, self.env['ir.model.fields'].search([('model', '=', 'sale.order')]).ids)],
         'popup_type': 'alert',
         'title': 'Attention',
@@ -452,6 +452,8 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
 

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

+

Current maintainer:

+

ilyasProgrammer

This module is part of the OCA/web project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.