Hello,
New sale order '{self.name}' + created with Discount by '{self.env.user.name}' need your approval + on it.
To Approve, Cancel Order, Click on the Following + Link: Click Me
Thank You.
""" + mail_values = { + 'subject': f"{self.name} Discount Approval Request", + 'body_html': mail_body, + 'email_to': user.partner_id.email, + 'email_from': self.env.user.partner_id.email, + 'model': 'sale.order', + } + mail_id = self.env['mail.mail'].sudo().create(mail_values) + mail_id.send() + self.state = 'waiting_for_approval' + return res + + def action_waiting_approval(self): + """Method for approving the sale order discount""" + self.approval_user_id = self.env.user.id + self.state = 'sale' diff --git a/sale_order_discount_approval_odoo/security/sale_order_discount_approval_odoo_groups.xml b/sale_order_discount_approval_odoo/security/sale_order_discount_approval_odoo_groups.xml new file mode 100644 index 000000000..48a7d66a1 --- /dev/null +++ b/sale_order_discount_approval_odoo/security/sale_order_discount_approval_odoo_groups.xml @@ -0,0 +1,14 @@ + ++ Sale Order Discount Approval In Odoo17. +
++ Key Highlights +
++ Community & Enterprise Support.
++ Set the Approval Manager in settings.
++ This module allows Discount On sale order + line.
++ Discount Approval Manager allows user to give + discount in sales order.
++ In Settings,We have to set the user to be + Discount Approval Manager .
++ Sale Order Discount Approval.
++ Related Products
++ Our Services
+ +Odoo + Customization
+Odoo + Implementation
+Odoo + Support
+Hire + Odoo Developer
+Odoo + Integration
+Odoo + Migration
+Odoo + Consultancy
+Odoo + Implementation
+Odoo + Licensing Consultancy
++ Our Industries
+ +Trading
+Easily procure and sell your products
+POS
+Easy configuration and convivial experience
++ Education
+A platform for educational management
++ Manufacturing
+Plan, track and schedule your operations
+E-commerce & + Website
+Mobile friendly, awe-inspiring product pages
+Service + Management
+Keep track of services and invoice
++ Restaurant
+Run your bar or restaurant methodically
+Hotel + Management
+An all-inclusive hotel management application
++ Support
+Got + questions or need help? Get in touch.
+Say hi to + us on WhatsApp!
+