Web Dialog Confirm On Save Form View

by
Odoo
v 13.0 Third Party 712
Download for v 13.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 92
Technical Name web_confirm_on_save
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 92
Technical Name web_confirm_on_save

Show dialog to confirm or alert on form view after save a record:

  • Add confirm="message" to show confirm, user can decide continue or cancel

  • Add alert="message" to show alert after record has been saved

Example: <form string="Product" confirm="Are you sure to save this product?">

If you want to check condition to show dialog, add this function to model:

    @api.model
    def check_condition_show_dialog(self, record_id, data_changed):
    """ 
        :param:   self: current model
                  record_id: id of record if save on write function, False on create function
                  data_changed: data changed on form
        :returns: True: show dialog
                  False: ignore dialog
    """
    return True

Return False to ignore show dialog after custom check

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
by
jkigula@kolapro.com
on 8/29/22, 4:51 AM

Nice module


by
Tintu Mon
on 11/21/20, 9:19 AM



There are no comments yet!