Mathias Markl 7 years ago
parent
commit
39e6afe11e
  1. 8
      muk_attachment_lobject/README.md
  2. 15
      muk_attachment_lobject/__manifest__.py
  3. 50
      muk_attachment_lobject/static/description/index.html
  4. 2
      muk_attachment_lobject/tests/test_attachment.py

8
muk_attachment_lobject/README.md

@ -1,5 +1,5 @@
# MuK Document Management System - Attachment
# MuK Large Object Attachment Storage
MuK Documents is a module to create, manage and view files directly within
Odoo. MuK Documents Attachment allows to store Odoo Attachments inside the
Document Management System.
Provides a new attachment location to save attachment as large
objects. To enable the large object storage option change the
`ir_attachment.location` parameter to `lobject`.

15
muk_attachment_lobject/__manifest__.py

@ -22,16 +22,15 @@
###################################################################################
{
"name": "MuK Documents Attachment",
"summary": """Documents as Attachment Storage""",
"name": "MuK Large Objects Attachment",
"summary": """Large Objects Attachment Location""",
"description": """
MuK Documents is a module to create, manage and
view files directly within Odoo. MuK Documents
Attachment allows to store Odoo Attachments
inside the Document Management System.
Provides a new attachment location to save attachment as large
objects. To enable the large object storage option change the
`ir_attachment.location` parameter to `lobject`.
""",
"version": '11.0.1.0.4',
"category": 'Document Management',
"version": '11.0.1.0.0',
"category": 'Extra Tools',
"license": "AGPL-3",
"website": "http://www.mukit.at",
"author": "MuK IT",

50
muk_attachment_lobject/static/description/index.html

@ -1,51 +1,27 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">MuK Documents Attachment</h2>
<h3 class="oe_slogan">Documents as Attachment Storage</h3>
<h2 class="oe_slogan">MuK Large Objects Attachment</h2>
<h3 class="oe_slogan">Large Objects Attachment Location</h3>
<h4 class="oe_slogan" style="font-size: 23px;">MuK IT GmbH -
www.mukit.at</h4>
<div class="oe_demo oe_picture oe_screenshot">
<img src="screenshot.png">
</div>
</div>
</section>
<section class="oe_container" style="padding-top: 5px;">
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_picture">
<h3 class="oe_slogan">Overview</h3>
<p class="oe_mt32">MuK Documents is a module to create, manage
and view files directly within Odoo. MuK Documents Attachment allows
to store Odoo Attachments inside the Document Management System.</p>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<h3 class="oe_slogan">Settings and Migration</h3>
<div class="oe_span6">
<img class="oe_picture oe_screenshot" src="screenshot_settings.png">
</div>
<div class="oe_span6">
<p class="oe_mt32 text-justify">Set a directory, where
attachments should be saved by default. In case you want to migrate
just click the button "Force Storage Migration".</p>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<h3 class="oe_slogan">Attachment View</h3>
<div class="oe_span6">
<p class="oe_mt32 text-justify">A new view is provided to see all
stored attachments. In case you want to migrate specific attachments,
an action is provided via the "Action" menu.</p>
<div class="oe_mt32"
style="padding-bottom: 10px; text-align: justify;">
<p>
Provides a new attachment location to save attachment as large
objects. To enable the large object storage option change the
<code>ir_attachment.location</code>
parameter to
<code>lobject</code>
.
</p>
</div>
<div class="oe_span6">
<img class="oe_picture oe_screenshot"
src="screenshot_attachments.png">
</div>
</div>
</section>

2
muk_attachment_lobject/tests/test_attachment.py

@ -56,5 +56,5 @@ class AttachmentTestCase(common.TransactionCase):
oid = attach.with_context({'oid': True}).store_lobject
self.assertTrue(oid)
attach.write({'datas': base64.b64encode(b"\xff data")})
self.assertTrue(oid == attach.with_context({'oid': True}).store_lobject)
self.assertTrue(oid != attach.with_context({'oid': True}).store_lobject)
attach.unlink()
Loading…
Cancel
Save