Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
d6a5fc0
Version 1.0.0
May 4, 2017
19d69b4
9.0 > 10.0
May 13, 2017
44bdd18
added markdown preview using showdown js library
sherpya Jul 24, 2017
bf1f509
update
Oct 4, 2017
1a7ab5f
Add Ukrainian translation to mik_dms and muk_dms_access
Jun 25, 2018
43fc83c
Documents 2.0
keshrath Jul 10, 2018
313a6fa
publish muk_dms - 11.0
keshrath Jul 30, 2018
7424a50
v12
keshrath Sep 12, 2018
99e8530
[IMP] : black, isort, prettier
etobella May 18, 2020
61e374d
[MIG] dms: from muk_dms to dms
etobella May 18, 2020
cce6538
[MIG] Dms tag
May 18, 2020
d5f52f2
[MIG] dms: File
AntoniRomera May 18, 2020
0158727
[MIG][13.0] dms: Finish migration
etobella May 18, 2020
2f12c75
[IMP] Minor mig fixes
May 19, 2020
08443fd
[MIG] dms: fix tests
etobella May 19, 2020
0f193c4
[IMP] Add security groups
May 19, 2020
69d8de4
[ADD] dms: add funcionality of muk_dms_file
AntoniRomera May 19, 2020
5f94f40
[MIG] dms: File functionality
etobella May 19, 2020
202f184
[IMP] dms: Allow to drag and drop
etobella May 19, 2020
bc42a91
[FIX] Various fixes
May 19, 2020
fbf8730
[IMP] dms: Add mail
etobella May 19, 2020
d4986e9
[FIX] dms: remove unused code and fixing: webpanel, migration, thumbn…
etobella May 19, 2020
65b9f8d
[UPD] Update dms.pot
oca-travis Jul 6, 2020
7b3e5f2
[MIG] Backport to 12.0
etobella Jul 6, 2020
e6ee3a8
[FIX] travis: let black use python 3.6
etobella Jul 27, 2020
d404b41
[FIX] dms: Download file with its proper name
etobella Aug 12, 2020
21b53a1
[FIX] dms: missing banner images & Load fields on the usual way
etobella Aug 14, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ stages:
jobs:
include:
- stage: linting
python: 3.6
name: "pre-commit"
before_install:
install: pip install pre-commit
Expand Down
125 changes: 125 additions & 0 deletions dms/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
==========================
Document Management System
==========================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fdms-lightgray.png?logo=github
:target: https://github.com/OCA/dms/tree/13.0/dms
:alt: OCA/dms
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/dms-13-0/dms-13-0-dms
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/292/13.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

DMS is a module for creating, managing and viewing document files directly
within Odoo.
This module is only the basis for an entire ecosystem of apps that extend and
seamlessly integrate with the document management system.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module, you need to:

#. Go to *Documents -> Configuration -> Storages*.
#. Create a new document storage. You can choose between two options on `Save Type`:
* `Database`: Store the files on the database as a field
* `Attachment`: Store the files as attachments
#. Afterwards go to *Documents -> Directories*.
#. Create a new directory, mark it as root and select the previously created setting.
#. On the Directory you can also define the access groups that will be able to:
* read
* create
* write
* delete


Migration
~~~~~~~~~

If you need to modify the storage Save Type you might want to migrate the file data.
In order to achieve it you need to:

#. Go to *Documents -> Configuration -> Storage* and select the storage you want to modify
#. Modify the save type
#. Press the button `Migrate files` if you want to migrate all the files at once
#. Press the button `Manual File Migration` in order to specify files one by one

You can check all the files that still needs to be migrated from all storages
and migrate them manually on *Documents -> Configuration -> Migration*

Usage
=====

The best way to manage the documents is to switch to the Documents view.
Existing documents can be managed there and new documents can be created.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/dms/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/dms/issues/new?body=module:%20dms%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* MuK IT

Contributors
~~~~~~~~~~~~

* Mathias Markl <mathias.markl@mukit.at>
* Enric Tobella <etobella@creublanca.es>
* Antoni Romera
* Gelu Boros <gelu.boros@rgbconsulting.com>

Other credits
~~~~~~~~~~~~~

Some pictures are based on or inspired by:

* `Roundicons <https://www.flaticon.com/authors/roundicons>`_
* `Smashicons <https://www.flaticon.com/authors/smashicons>`_

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/dms <https://github.com/OCA/dms/tree/13.0/dms>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions dms/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import controllers
from . import models
39 changes: 39 additions & 0 deletions dms/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright 2017-2019 MuK IT GmbH
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
"name": "Document Management System",
"summary": """Document Management System for Odoo""",
"version": "12.0.1.0.0",
"category": "Document Management",
"license": "LGPL-3",
"website": "http://github.com/OCA/dms",
"author": "MuK IT,Odoo Community Association (OCA)",
"depends": ["web_drop_target", "mail", "web_view_searchpanel", "http_routing"],
"data": [
"security/security.xml",
"security/ir.model.access.csv",
"actions/file.xml",
"template/assets.xml",
"template/onboarding.xml",
"views/menu.xml",
"views/tag.xml",
"views/category.xml",
"views/dms_file.xml",
"views/directory.xml",
"views/storage.xml",
"views/dms_access_groups_views.xml",
"views/res_config_settings.xml",
],
"qweb": ["static/src/xml/views.xml"],
"demo": [
"demo/res_users.xml",
"demo/category.xml",
"demo/tag.xml",
"demo/storage.xml",
"demo/directory.xml",
"demo/file.xml",
],
"images": ["static/description/banner.png"],
"application": True,
}
16 changes: 16 additions & 0 deletions dms/actions/file.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--

Copyright 2017-2019 MuK IT GmbH
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

-->
<odoo>
<record id="action_dms_attachment_migrate" model="ir.actions.server">
<field name="name">Migrate</field>
<field name="model_id" ref="model_dms_file" />
<field name="binding_model_id" ref="dms.model_dms_file" />
<field name="state">code</field>
<field name="code">records.action_migrate()</field>
</record>
</odoo>
1 change: 1 addition & 0 deletions dms/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import main
49 changes: 49 additions & 0 deletions dms/controllers/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright 2017-2019 MuK IT GmbH
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
from odoo import http
from odoo.http import request


class OnboardingController(http.Controller):
@http.route("/dms/document_onboarding/directory", auth="user", type="json")
def document_onboarding_directory(self):
company = request.env.user.company_id
closed = company.documents_onboarding_state == "closed"
check = request.env.user.has_group("dms.group_dms_manager")
if check and not closed:
return {
"html": request.env.ref(
"dms.document_onboarding_directory_panel"
).render(
{
"state": company.get_and_update_documents_onboarding_state(),
"company": company,
}
)
}
return {}

@http.route("/dms/document_onboarding/file", auth="user", type="json")
def document_onboarding_file(self):
company = request.env.user.company_id
closed = company.documents_onboarding_state == "closed"
check = request.env.user.has_group("dms.group_dms_manager")
if check and not closed:
return {
"html": request.env.ref("dms.document_onboarding_file_panel").render(
{
"state": company.get_and_update_documents_onboarding_state(),
"company": company,
}
)
}
return {}

@http.route("/config/dms.forbidden_extensions", type="json", auth="user")
def forbidden_extensions(self, **_kwargs):
params = request.env["ir.config_parameter"].sudo()
return {
"forbidden_extensions": params.get_param(
"dms.forbidden_extensions", default=""
)
}
31 changes: 31 additions & 0 deletions dms/demo/category.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--

Copyright 2017-2019 MuK IT GmbH
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

-->
<odoo noupdate="1">
<record id="category_01_demo" model="dms.category">
<field name="name">Internal</field>
</record>
<record id="category_02_demo" model="dms.category">
<field name="name">Human Resource</field>
<field name="parent_id" ref="dms.category_01_demo" />
</record>
<record id="category_03_demo" model="dms.category">
<field name="name">Contracts</field>
<field name="parent_id" ref="dms.category_02_demo" />
</record>
<record id="category_04_demo" model="dms.category">
<field name="name">Traveling</field>
<field name="parent_id" ref="dms.category_02_demo" />
</record>
<record id="category_05_demo" model="dms.category">
<field name="name">External</field>
</record>
<record id="category_06_demo" model="dms.category">
<field name="name">News</field>
<field name="parent_id" ref="dms.category_05_demo" />
</record>
</odoo>
Binary file added dms/demo/data/audio01.wav
Binary file not shown.
Binary file added dms/demo/data/audio02.wav
Binary file not shown.
Binary file added dms/demo/data/audio03.mp3
Binary file not shown.
Binary file added dms/demo/data/audio04.mp3
Binary file not shown.
10 changes: 10 additions & 0 deletions dms/demo/data/code01.aj
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// HelloWorld.java
public class HelloWorld {
public static void say(String message) {
System.out.println(message);
}

public static void sayToPerson(String message, String name) {
System.out.println(name + ", " + message);
}
}
9 changes: 9 additions & 0 deletions dms/demo/data/code02.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
##
##
## Copyright 2017-2019 MuK IT GmbH
## License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
##
##
STR="Hello World!"
echo $STR
12 changes: 12 additions & 0 deletions dms/demo/data/code03.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
*
* Copyright 2017-2019 MuK IT GmbH
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
*
*/
#include <stdio.h>

int main(void)
{
printf("hello, world\n");
}
13 changes: 13 additions & 0 deletions dms/demo/data/code04.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
*
* Copyright 2017-2019 MuK IT GmbH
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
*
*/
#include <iostream>

int main()
{
std::cout << "Hello, world!\n";
return 0;
}
13 changes: 13 additions & 0 deletions dms/demo/data/code05.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// Copyright 2017-2019 MuK IT GmbH
// License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
//
using System;

class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, world!");
}
}
5 changes: 5 additions & 0 deletions dms/demo/data/code06.cbl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
IDENTIFICATION DIVISION.
PROGRAM-ID. hello-world.
PROCEDURE DIVISION.
DISPLAY "Hello, world!"
.
1 change: 1 addition & 0 deletions dms/demo/data/code07.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log "Hello, World!"
3 changes: 3 additions & 0 deletions dms/demo/data/code08.f
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
program helloworld
print *, "Hello world!"
end program helloworld
7 changes: 7 additions & 0 deletions dms/demo/data/code09.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package main

import "fmt"

func main() {
fmt.Println("Hello, World")
}
7 changes: 7 additions & 0 deletions dms/demo/data/code10.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**********************************************************************************
*
* Copyright 2017-2019 MuK IT GmbH
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
*
**********************************************************************************/
println "Hello World"
11 changes: 11 additions & 0 deletions dms/demo/data/code11.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**********************************************************************************
*
* Copyright 2017-2019 MuK IT GmbH
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
*
**********************************************************************************/
class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); // Prints the string to the console.
}
}
3 changes: 3 additions & 0 deletions dms/demo/data/code12.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
object HelloWorld extends App {
println("Hello, World!")
}
Binary file added dms/demo/data/document01.pdf
Binary file not shown.
Binary file added dms/demo/data/document02.doc
Binary file not shown.
Binary file added dms/demo/data/document03.odt
Binary file not shown.
Loading