This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: nginx-conf | |
| data: | |
| index.conf: | | |
| server { | |
| listen 80; | |
| server_name _; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <odoo> | |
| <data> | |
| <template id="assets_backend_base" name="base assets" inherit_id="web.assets_backend"> | |
| <xpath expr="." position="inside"> | |
| <script type="text/javascript" src="/module/path/to/static/src/js/web_disable_print.js"/> | |
| </xpath> | |
| </template> | |
| </data> | |
| </odoo> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MainController(http.Controller): | |
| @http.route('/photo_upload', type='http', csrf=False, auth='user') | |
| def photo_update(self, **kwargs): | |
| Ira = request.env['ir.attachment'].sudo() | |
| //img1 | |
| image_buffer_random = kwargs['avatar'].stream.read() | |
| image = base64.b64encode(image_buffer_random) | |
| //img2 |