diff --git a/odex30_base/odx_m2m_attachment_preview/__manifest__.py b/odex30_base/odx_m2m_attachment_preview/__manifest__.py index e2a852a..c594f53 100644 --- a/odex30_base/odx_m2m_attachment_preview/__manifest__.py +++ b/odex30_base/odx_m2m_attachment_preview/__manifest__.py @@ -17,13 +17,12 @@ 'size_restriction_for_attachments' ], 'data': [ - 'security/ir.model.access.csv', - 'views/sale_menu_attachment_demo.xml', # <-- ملف الواجهة الجديد + ], 'assets': { 'web.assets_backend': [ 'odx_m2m_attachment_preview/static/src/components/many2many_attachment_preview/many2many_attachment_preview.css', -'odx_m2m_attachment_preview/static/src/components/document_viewer/document_viewer.css', + 'odx_m2m_attachment_preview/static/src/components/document_viewer/document_viewer.css', 'odx_m2m_attachment_preview/static/src/components/many2many_attachment_preview/many2many_attachment_preview.xml', 'odx_m2m_attachment_preview/static/src/components/document_viewer/document_viewer.xml', 'odx_m2m_attachment_preview/static/src/components/many2many_attachment_preview/many2many_attachment_preview.js', diff --git a/odex30_base/odx_m2m_attachment_preview/models/__init__.py b/odex30_base/odx_m2m_attachment_preview/models/__init__.py index 457e07f..04ae235 100644 --- a/odex30_base/odx_m2m_attachment_preview/models/__init__.py +++ b/odex30_base/odx_m2m_attachment_preview/models/__init__.py @@ -1,3 +1,2 @@ # -*- coding: utf-8 -*- from . import ir_attachment_Ext -from . import attachment_demo \ No newline at end of file diff --git a/odex30_base/odx_m2m_attachment_preview/models/attachment_demo.py b/odex30_base/odx_m2m_attachment_preview/models/attachment_demo.py deleted file mode 100644 index c1383b9..0000000 --- a/odex30_base/odx_m2m_attachment_preview/models/attachment_demo.py +++ /dev/null @@ -1,14 +0,0 @@ -# -*- coding: utf-8 -*- -from odoo import models, fields - -class AttachmentDemo(models.Model): - _name = 'attachment.demo' - _description = 'Attachment Preview Demo' - - name = fields.Char(string='Demo Name', required=True) - attachment_ids = fields.Many2many( - 'ir.attachment', - string='Attachments (Preview Widget)', - help="Attachments with the custom preview widget." - - ) diff --git a/odex30_base/odx_m2m_attachment_preview/security/ir.model.access.csv b/odex30_base/odx_m2m_attachment_preview/security/ir.model.access.csv deleted file mode 100644 index 366e20a..0000000 --- a/odex30_base/odx_m2m_attachment_preview/security/ir.model.access.csv +++ /dev/null @@ -1,2 +0,0 @@ -id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_attachment_demo_user,attachment.demo user,model_attachment_demo,base.group_user,1,1,1,1 diff --git a/odex30_base/odx_m2m_attachment_preview/static/src/components/document_viewer/document_viewer.css b/odex30_base/odx_m2m_attachment_preview/static/src/components/document_viewer/document_viewer.css index f4efff8..6b6f123 100644 --- a/odex30_base/odx_m2m_attachment_preview/static/src/components/document_viewer/document_viewer.css +++ b/odex30_base/odx_m2m_attachment_preview/static/src/components/document_viewer/document_viewer.css @@ -1,5 +1,4 @@ -/* Modal Full Screen */ -/* Modal Full Screen - يغطي كل شيء */ + .o_modal_fullscreen { position: fixed !important; top: 0 !important; diff --git a/odex30_base/odx_m2m_attachment_preview/static/src/components/document_viewer/document_viewer.xml b/odex30_base/odx_m2m_attachment_preview/static/src/components/document_viewer/document_viewer.xml index e0b3830..7bab999 100644 --- a/odex30_base/odx_m2m_attachment_preview/static/src/components/document_viewer/document_viewer.xml +++ b/odex30_base/odx_m2m_attachment_preview/static/src/components/document_viewer/document_viewer.xml @@ -1,13 +1,11 @@ -
-
-
- -