summaryrefslogtreecommitdiff
path: root/addons/share
diff options
context:
space:
mode:
authorHarry (OpenERP) <hmo@tinyerp.com>2011-12-14 17:59:24 +0530
committerHarry (OpenERP) <hmo@tinyerp.com>2011-12-14 17:59:24 +0530
commit092f97b32b35af6a40b9d2ae70c3159da2fb235f (patch)
tree2974d3719af9338cd0b1814da900d7e9ca8d4779 /addons/share
parent593f5f571bbc49673975afc405e9345ef3457b92 (diff)
parente36dc8c5e3ca3da1474747bae5ec87fea19b23b8 (diff)
[MERGE] merged with trunk-development-branch
bzr revid: hmo@tinyerp.com-20111214122924-izzibrz1yz67rt7g
Diffstat (limited to 'addons/share')
-rw-r--r--addons/share/__openerp__.py4
-rw-r--r--addons/share/i18n/hr.po69
-rw-r--r--addons/share/res_users.py8
-rw-r--r--addons/share/res_users_view.xml12
-rw-r--r--addons/share/security/share_security.xml11
5 files changed, 58 insertions, 46 deletions
diff --git a/addons/share/__openerp__.py b/addons/share/__openerp__.py
index b9077109c3c..7a78783348c 100644
--- a/addons/share/__openerp__.py
+++ b/addons/share/__openerp__.py
@@ -22,11 +22,11 @@
{
- "name" : "Web Share",
+ "name" : "Share any Document",
"version" : "2.0",
"depends" : ["base", "mail"],
"author" : "OpenERP SA",
- "category": 'Hidden',
+ "category": 'Tools',
'complexity': "easy",
"description": """
This module adds generic sharing tools to your current OpenERP database.
diff --git a/addons/share/i18n/hr.po b/addons/share/i18n/hr.po
index 29c2187a5d2..8b1c7f29d88 100644
--- a/addons/share/i18n/hr.po
+++ b/addons/share/i18n/hr.po
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2011-01-11 11:16+0000\n"
-"PO-Revision-Date: 2010-09-08 09:05+0000\n"
+"PO-Revision-Date: 2011-12-08 17:51+0000\n"
"Last-Translator: Goran Kliska <gkliska@gmail.com>\n"
"Language-Team: Croatian <hr@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2011-11-05 05:45+0000\n"
-"X-Generator: Launchpad (build 14231)\n"
+"X-Launchpad-Export-Date: 2011-12-09 04:46+0000\n"
+"X-Generator: Launchpad (build 14450)\n"
#. module: share
#: code:addons/share/web/editors.py:15
@@ -38,7 +38,7 @@ msgstr ""
#. module: share
#: help:res.groups,share:0
msgid "Group created to set access rights for sharing data with some users."
-msgstr ""
+msgstr "Group created to set access rights for sharing data with some users."
#. module: share
#: model:ir.module.module,shortdesc:share.module_meta_information
@@ -48,7 +48,7 @@ msgstr ""
#. module: share
#: sql_constraint:res.users:0
msgid "You can not have two users with the same login !"
-msgstr ""
+msgstr "Ne možete imati dva korisnika sa istim korisničkim imenom !"
#. module: share
#: code:addons/share/wizard/share_wizard.py:76
@@ -76,22 +76,24 @@ msgstr ""
#: constraint:res.users:0
msgid "The chosen company is not in the allowed companies for this user"
msgstr ""
+"Odabrana organizacija nije među dozvoljenim organizacijama za ovog korisnika"
#. module: share
#: model:ir.model,name:share.model_res_users
msgid "res.users"
-msgstr ""
+msgstr "res.users"
#. module: share
#: view:share.wizard:0
msgid "Next"
-msgstr ""
+msgstr "Next"
#. module: share
#: help:share.wizard,action_id:0
msgid ""
"The action that opens the screen containing the data you wish to share."
msgstr ""
+"The action that opens the screen containing the data you wish to share."
#. module: share
#: code:addons/share/wizard/share_wizard.py:68
@@ -113,7 +115,7 @@ msgstr ""
#. module: share
#: field:share.wizard.result.line,newly_created:0
msgid "Newly created"
-msgstr ""
+msgstr "Newly created"
#. module: share
#: field:share.wizard,share_root_url:0
@@ -131,7 +133,7 @@ msgstr ""
#. module: share
#: view:res.groups:0
msgid "Regular groups only (no share groups"
-msgstr ""
+msgstr "Regular groups only (no share groups"
#. module: share
#: selection:share.wizard,access_mode:0
@@ -163,7 +165,7 @@ msgstr ""
#. module: share
#: field:res.users,share:0
msgid "Share User"
-msgstr ""
+msgstr "Udio korisnika"
#. module: share
#: code:addons/share/wizard/share_wizard.py:452
@@ -210,7 +212,7 @@ msgstr ""
#. module: share
#: sql_constraint:res.groups:0
msgid "The name of the group must be unique !"
-msgstr ""
+msgstr "Naziv grupe mora biti jedinstven!"
#. module: share
#: selection:share.wizard,user_type:0
@@ -226,7 +228,7 @@ msgstr ""
#. module: share
#: view:res.groups:0
msgid "Groups"
-msgstr ""
+msgstr "Grupe"
#. module: share
#: view:share.wizard:0
@@ -236,14 +238,14 @@ msgstr ""
#. module: share
#: field:res.groups,share:0
msgid "Share Group"
-msgstr ""
+msgstr "Grupa dijeljenja"
#. module: share
#: code:addons/share/wizard/share_wizard.py:459
#: field:share.wizard.result.line,password:0
#, python-format
msgid "Password"
-msgstr ""
+msgstr "Lozinka"
#. module: share
#: view:share.wizard:0
@@ -298,6 +300,8 @@ msgid ""
"Please select the action that opens the screen containing the data you want "
"to share."
msgstr ""
+"Please select the action that opens the screen containing the data you want "
+"to share."
#. module: share
#: selection:share.wizard,user_type:0
@@ -308,12 +312,12 @@ msgstr ""
#: view:share.wizard:0
#: field:share.wizard,result_line_ids:0
msgid "Summary"
-msgstr ""
+msgstr "Sažetak"
#. module: share
#: field:share.wizard,user_type:0
msgid "Users to share with"
-msgstr ""
+msgstr "Users to share with"
#. module: share
#: code:addons/share/wizard/share_wizard.py:304
@@ -339,6 +343,8 @@ msgid ""
"Optionally, you may specify an additional domain restriction that will be "
"applied to the shared data."
msgstr ""
+"Optionally, you may specify an additional domain restriction that will be "
+"applied to the shared data."
#. module: share
#: view:share.wizard:0
@@ -356,17 +362,17 @@ msgstr ""
#. module: share
#: view:res.users:0
msgid "Regular users only (no share user)"
-msgstr ""
+msgstr "Redoviti korisnici samo (bez podijeljenih korisnika)"
#. module: share
#: field:share.wizard.result.line,share_url:0
msgid "Share URL"
-msgstr ""
+msgstr "Share URL"
#. module: share
#: field:share.wizard,domain:0
msgid "Domain"
-msgstr ""
+msgstr "Domena"
#. module: share
#: code:addons/share/wizard/share_wizard.py:314
@@ -380,12 +386,12 @@ msgstr ""
#. module: share
#: field:share.wizard,access_mode:0
msgid "Access Mode"
-msgstr ""
+msgstr "Način pristupa"
#. module: share
#: view:share.wizard:0
msgid "Access info"
-msgstr ""
+msgstr "Access info"
#. module: share
#: code:addons/share/wizard/share_wizard.py:454
@@ -398,13 +404,13 @@ msgstr ""
#. module: share
#: field:share.wizard,action_id:0
msgid "Action to share"
-msgstr ""
+msgstr "Action to share"
#. module: share
#: code:addons/share/web/editors.py:18
#, python-format
msgid "Share"
-msgstr ""
+msgstr "Podjeli"
#. module: share
#: code:addons/share/wizard/share_wizard.py:434
@@ -420,7 +426,7 @@ msgstr ""
#. module: share
#: model:ir.model,name:share.model_share_wizard_result_line
msgid "share.wizard.result.line"
-msgstr ""
+msgstr "share.wizard.result.line"
#. module: share
#: code:addons/share/wizard/share_wizard.py:313
@@ -435,22 +441,22 @@ msgstr ""
#: model:ir.ui.menu,name:share.menu_action_share_wizard
#: field:share.wizard.result.line,share_wizard_id:0
msgid "Share Wizard"
-msgstr ""
+msgstr "Asistent dijeljenja"
#. module: share
#: help:share.wizard,user_type:0
msgid "Select the type of user(s) you would like to share data with."
-msgstr ""
+msgstr "Odaberite vrstu korisnika (e) s kojima želite dijeliti podatke."
#. module: share
#: view:share.wizard:0
msgid "Cancel"
-msgstr ""
+msgstr "Odustani"
#. module: share
#: view:share.wizard:0
msgid "Close"
-msgstr ""
+msgstr "Zatvori"
#. module: share
#: help:res.users,share:0
@@ -458,11 +464,13 @@ msgid ""
"External user with limited access, created only for the purpose of sharing "
"data."
msgstr ""
+"External user with limited access, created only for the purpose of sharing "
+"data."
#. module: share
#: help:share.wizard,domain:0
msgid "Optional domain for further data filtering"
-msgstr ""
+msgstr "Optional domain for further data filtering"
#. module: share
#: selection:share.wizard,access_mode:0
@@ -474,3 +482,6 @@ msgstr ""
#, python-format
msgid "*usual password*"
msgstr ""
+
+#~ msgid "Access Groups"
+#~ msgstr "Access Groups"
diff --git a/addons/share/res_users.py b/addons/share/res_users.py
index f7a81a24948..0462f1339d0 100644
--- a/addons/share/res_users.py
+++ b/addons/share/res_users.py
@@ -26,7 +26,13 @@ class res_groups(osv.osv):
_columns = {
'share': fields.boolean('Share Group', readonly=True,
help="Group created to set access rights for sharing data with some users.")
- }
+ }
+
+ def __init__(self, pool, cr):
+ super(res_groups, self).__init__(pool, cr)
+ # add domain in get_groups_by_application()
+ self.groups_by_application_domain.append(('share', '=', False))
+
res_groups()
class res_users(osv.osv):
diff --git a/addons/share/res_users_view.xml b/addons/share/res_users_view.xml
index b03a090c809..3b74fbb4dbc 100644
--- a/addons/share/res_users_view.xml
+++ b/addons/share/res_users_view.xml
@@ -21,18 +21,6 @@
<field name="name">Users</field>
<field name="context">{'search_default_no_share': 1}</field>
</record>
- <record id="view_users_form_share" model="ir.ui.view">
- <field name="name">res.users.form</field>
- <field name="model">res.users</field>
- <field name="type">form</field>
- <field name="inherit_id" ref="base.view_users_form"/>
- <field name="arch" type="xml">
- <xpath expr="/form/notebook/page//field[@name='groups_id']" position="attributes">
- <attribute name="context">{'search_default_no_share':1}</attribute>
- </xpath>
- </field>
- </record>
-
<record model="ir.ui.view" id="res_groups_search_sharing">
<field name="name">res.groups.search.share</field>
diff --git a/addons/share/security/share_security.xml b/addons/share/security/share_security.xml
index a5405dbcb48..1e92ac44a53 100644
--- a/addons/share/security/share_security.xml
+++ b/addons/share/security/share_security.xml
@@ -1,10 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
+ <record model="ir.module.category" id="module_category_share">
+ <field name="name">Sharing</field>
+ <field name="parent_id" ref="base.module_category_tools"/>
+ <field name="sequence">26</field>
+ </record>
+
<record id="group_share_user" model="res.groups">
- <field name="name">Sharing / User</field>
+ <field name="name">User</field>
<field name="comment">
Members of this groups have access to the sharing wizard, which allows them to invite external users to view or edit some of their documents.</field>
+ <field name="category_id" ref="module_category_share"/>
</record>
</data>
-</openerp> \ No newline at end of file
+</openerp>