mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-26 06:57:43 -06:00
[NEW] New module: attachment_attach_non_editable
In odoo, by default, you can't add attachments to a record if the form view is set as not editable (``edit='false'`` in the form tag) This module adds a new form view attribute, ``attach=``, which lets you enable attachment uploads even in non-editable forms.
This commit is contained in:
10
attachment_attach_non_editable/templates/web.xml
Normal file
10
attachment_attach_non_editable/templates/web.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="assets_backend" name="document_type backend assets" inherit_id="web.assets_backend">
|
||||
<xpath expr="." position="inside">
|
||||
<script type="text/javascript" src="/attachment_attach_non_editable/static/src/js/sidebar.js"></script>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user