Browse Source

July 23: [FIX] Bug Fixed 'call_for_price_website'

pull/331/head
RisvanaCybro 9 months ago
parent
commit
7154d644a4
  1. 3
      call_for_price_website/controllers/call_for_price_website.py
  2. 2
      call_for_price_website/doc/RELEASE_NOTES.md
  3. 4
      call_for_price_website/views/call_for_price_views.xml

3
call_for_price_website/controllers/call_for_price_website.py

@ -24,7 +24,8 @@ from odoo.http import request
class WebsiteForm(http.Controller):
@http.route(['/call_for_price/submit'], type='http',csrf=False, auth="user", website=True ,methods=['POST'])
@http.route(['/call_for_price/submit'], type='http', csrf=False,
auth="public", website=True, methods=['POST'])
def call_for_price(self, **post):
"""Function for store the call for price queries to backend"""
record = request.env['call.price'].sudo().create(post)

2
call_for_price_website/doc/RELEASE_NOTES.md

@ -1,6 +1,6 @@
## Module <call_for_price_website>
#### 17.02.2024
#### 23.07.2024
#### Version 17.0.1.0.0
#### ADD

4
call_for_price_website/views/call_for_price_views.xml

@ -22,8 +22,8 @@
<form>
<header>
<button name="action_done" class="oe_highlight"
invisible="state in ('draft')" string="Done" type="object"/>
<button name="action_cancel" string="Cancel" type="object"/>
invisible="state in ['cancel','done']" string="Done" type="object"/>
<button name="action_cancel" string="Cancel" type="object" invisible="state in ('cancel')"/>
<field name="state" widget="statusbar"
statusbar_visible="draft,done,cancel"/>
</header>

Loading…
Cancel
Save