mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 22:32:03 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
|
|
@ -0,0 +1,13 @@
|
|||
from odoo import http
|
||||
from odoo.http import request
|
||||
from odoo.addons.web.controllers.binary import Binary
|
||||
|
||||
|
||||
class PointOfSaleBinary(Binary):
|
||||
@http.route([
|
||||
'/web/image/pos.config/<id>/<string:field>',
|
||||
'/web/image/pos.config/<id>/<string:field>/<int:width>x<int:height>'], type='http', auth="public")
|
||||
def point_of_sale_content_image(self, field='raw', **kwargs):
|
||||
if request.env.user._is_public() and field == 'customer_display_bg_img':
|
||||
request.env = request.env(su=True)
|
||||
return super().content_image(field=field, model='pos.config', **kwargs)
|
||||
Loading…
Add table
Add a link
Reference in a new issue