-
-
Notifications
You must be signed in to change notification settings - Fork 394
migrate document_choose_directory to v9 #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
ee6261b
migrate document_choose_directory to v9
mohamedhabibchallouf fbd3f53
REMOVE ALL PRINT AND ADD NEW MODULE DOCUMENT_DOCUMENT (OLD VERSION OF
mohamedhabibchallouf 4a01a30
change __OPENERP__.PY
mohamedhabibchallouf 782f0d5
Add New module document_document and upgrade document_choose_directory
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <projectDescription> | ||
| <name>knowledge_Fork_Me</name> | ||
| <comment></comment> | ||
| <projects> | ||
| </projects> | ||
| <buildSpec> | ||
| <buildCommand> | ||
| <name>org.python.pydev.PyDevBuilder</name> | ||
| <arguments> | ||
| </arguments> | ||
| </buildCommand> | ||
| </buildSpec> | ||
| <natures> | ||
| <nature>org.python.pydev.pythonNature</nature> | ||
| </natures> | ||
| </projectDescription> |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
| <?eclipse-pydev version="1.0"?><pydev_project> | ||
| <pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property> | ||
| <pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property> | ||
| </pydev_project> |
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
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
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
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
11 changes: 8 additions & 3 deletions
11
document_choose_directory/static/src/xml/document_choose_directory.xml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,24 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <templates> | ||
| <t t-extend="Sidebar"> | ||
| <t t-jquery=".oe_sidebar_add_attachment span" t-operation="before"> | ||
| <t t-jquery=".oe_sidebar_add_attachment span" t-operation="before"> | ||
|
|
||
| <select name="directory_id"> | ||
| <option value="" selected="selected">Choose directory</option> | ||
| <option t-foreach="widget.directory_candidates" t-as="directory" t-att-value="directory.id"> | ||
| <t t-esc="directory.name" /> | ||
| </option> | ||
| </select> | ||
|
|
||
| </t> | ||
| <t t-jquery=".oe_sidebar_delete_item"> | ||
| <t t-jquery=".oe_sidebar_delete_item"> | ||
| this.attr('t-if', "section.name == 'files' and !item.callback and item.classname != 'oe_attachment_directory'"); | ||
| </t> | ||
| <t t-jquery="button.oe_dropdown_toggle t[t-if]"> | ||
| <t t-jquery="button.btn t[t-if]"> | ||
| this.attr('t-raw', "(widget.items[section.name].length - widget.get_directory_items(widget.items[section.name]).length) || ''"); | ||
| </t> | ||
| </t> | ||
| </templates> | ||
|
|
||
|
|
||
|
|
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <openerp> | ||
| <data> | ||
|
|
||
|
|
||
|
|
||
| <!-- <record id="action_attachment" model="ir.actions.act_window"> <field | ||
| name="name">Attachments</field> <field name="type">ir.actions.act_window</field> | ||
| <field name="res_model">ir.attachment</field> <field name="view_type">form</field> | ||
| <field name="view_id" eval="False"/> <field name="search_view_id" ref="view_attachment_search"/> | ||
| <field name="help" type="html"> <p class="oe_view_nocontent_create"> Click | ||
| here to create new documents. </p> <p> Also you will find here all the related | ||
| documents and download it by clicking on any individual document. </p> </field> | ||
| </record> --> | ||
|
|
||
|
|
||
|
|
||
| <menuitem name="Attachment Management" | ||
| parent ="knowledge.menu_document" id="menu_action_attachment_management_inherits" /> | ||
| <menuitem name="Attachment" action="base.action_attachment" | ||
| parent ="menu_action_attachment_management_inherits" id="menu_action_attachment_inherits" /> | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| </data> | ||
| </openerp> |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # -*- coding: utf-8 -*- | ||
| ############################################################################## | ||
| # | ||
| # OpenERP, Open Source Management Solution | ||
| # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). | ||
| # | ||
| # This program is free software: you can redistribute it and/or modify | ||
| # it under the terms of the GNU Affero General Public License as | ||
| # published by the Free Software Foundation, either version 3 of the | ||
| # License, or (at your option) any later version. | ||
| # | ||
| # This program is distributed in the hope that it will be useful, | ||
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| # GNU Affero General Public License for more details. | ||
| # | ||
| # You should have received a copy of the GNU Affero General Public License | ||
| # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| # | ||
| ############################################################################## | ||
|
|
||
| import content_index | ||
| import std_index | ||
| import document | ||
| import report | ||
| import wizard | ||
|
|
||
| # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| # -*- coding: utf-8 -*- | ||
| ############################################################################## | ||
| # | ||
| # OpenERP, Open Source Management Solution | ||
| # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). | ||
| # | ||
| # This program is free software: you can redistribute it and/or modify | ||
| # it under the terms of the GNU Affero General Public License as | ||
| # published by the Free Software Foundation, either version 3 of the | ||
| # License, or (at your option) any later version. | ||
| # | ||
| # This program is distributed in the hope that it will be useful, | ||
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| # GNU Affero General Public License for more details. | ||
| # | ||
| # You should have received a copy of the GNU Affero General Public License | ||
| # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| # | ||
| ############################################################################## | ||
|
|
||
|
|
||
| { | ||
| 'name': 'Document Management System', | ||
| 'version': '2.1', | ||
| 'category': 'Knowledge Management', | ||
| 'description': """ | ||
| This is a complete document management system. | ||
| ============================================== | ||
| * User Authentication | ||
| * Document Indexation:- .pptx and .docx files are not supported in Windows platform. | ||
| * Dashboard for Document that includes: | ||
| * New Files (list) | ||
| * Files by Resource Type (graph) | ||
| * Files by Partner (graph) | ||
| * Files Size by Month (graph) | ||
| """, | ||
| 'author': 'OpenERP SA', | ||
| 'website': 'https://www.odoo.com', | ||
| 'depends': ['knowledge', 'mail'], | ||
| 'data': [ | ||
| 'security/document_security.xml', | ||
| 'document_view.xml', | ||
| 'document_data.xml', | ||
| 'wizard/document_configuration_view.xml', | ||
| 'security/ir.model.access.csv', | ||
| 'report/document_report_view.xml', | ||
| 'views/document.xml', | ||
| ], | ||
| 'demo': [ 'document_demo.xml' ], | ||
| 'test': ['test/document_test2.yml'], | ||
| 'installable': True, | ||
| 'auto_install': False, | ||
| } | ||
|
|
||
| # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't add description key. There's already a README.rst for that