I have installed Odoo 9.0.1 ,and it's work good,then i installed Project Management App .
Then i have added Project user as the image below :
after that i have created an issue and assign it to Mark (Project User),but Mark from his account can't access the project issues or tasks,it's only shows the Dashboard without all Project menu items:
So how to change the security permission so the project user not the manager can view specific things in Project Module .
You want to give the Rights for the user for the particular task...
so you have to create 1 group suppose name is group1 and create 1 user suppose name is user1
you can create group and user through the 2 way first is through the coding and second way is front end side.
Create one folder name is Security,under this folder create one xml file name like security.xml.
create xml file for the security.
<openerp>
<!-- Create user -->
<data>
<record id="user1" model="res.users">
<field name="name">user1</field>
<field name="login">user1</field>
<field name="password">user1</field>
</record>
</data>
<!-- Create Group -->
<data>
<record id=”group_1“ model="res.groups”>
<field name="name">group1</field>
</record>
</data>
</openerp>
now you have to assign your user1 into the group1 through front end side.
you can also assign this user into the group1 through coding for that ...
under group code.
now you have to give the permission for the particular task or the module you can give also front end side and through csv file .
Create CSV file ....
Name must be ir.model.access.csv for the csv file.
this file also put under the security folder.
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_user1,task_user1,model_contact_contact,contact_advance.group_contact_all,1,1,0,0
you can also give the rights through the front end side also in the group edit mode.
now you can login as user1 and you can access your projects.
I hope this answer is helpful for you.
Related
Hi all getting the following error when generating the domain:
Action privilege NextStep for customer skyve in module tABSPOC for document TenementNote for role Viewer does not reference a valid action.
I have defined the following action in the view (edit.xml)
<actions>
<defaults/>
<action displayName="NextStep" className="NextStep" inActionPanel="true" />
</actions>
Did I miss a step or have I incorrectly defined the action?
Any assistance greatly appreciated.
check that you have a class in the TenementNote.actions package called NextStep and declared as follows:
public class NextStep implements ServerSideAction<TenementNote>
(if the package does not exist, create it by right-clicking on the TenementNote package and choose New->Package in eclipse)
check that you have declared permissions in the module xml file for TenementNote like this
<document name="TenementNote" permission="#####">
<action name="NextStep"/>
</document>
If that is all in place, refresh your project and try again.
Also if using eclipse, a default run config will be created for your project - - New Action, this will prompt you in the console for module name, document name and action name and create the package for you.
If you are not using eclipse, you can still trigger this via maven using mvn skyve:newAction . I believe this is documented in the readme in the root directory of new projects.
I am trying to index tables from our MySQL database on the Solr version that came with our ACF 2016 installation. Adobe's docs state that I need to use Solr's Data Import Handler to do this, which they say entails modifying solrconfig.xml and creating a data-config.xml file.
This does not work as is. Further reading leads me to believe that I need to:
Download a solr-dataimporthandler.jar
Copy ColdFusion's MySQL connector so that Solr can use it
Edit solrconfig.xml to account for these changes
Create a data-config.xml
Am I correct so far? Because I've been trying that, and when I try to reload my collection, the CF administrator gives me an error "Error handling 'reload' action." The Solr admin itself says:
org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Error loading class 'org.apache.solr.handler.dataimport.DataImportHandler'.
I don't know much about this, but it sounds to me like Solr cannot load one or both of the two jar files I added. If this is the case, then:
What solrconfig.xml should I be editing? I've been working on the one in the specific collection I've set up to index our database to.
Do I need both of those jars? Where should I put them? I have tried them in C:\ColdFusion2016\cfusion\jetty\lib and in a custom lib I set up at C:\ColdFusion2016\cfusion\jetty\multicore\lib.
Some sources (not Adobe) say I need to add lib directives to solrconfig.xml, while others say that any jars in a lib in Solr's "root" directory will automatically get added. I've tried both ways, and get the errors described above.
Still other sources say I need to add them to my classpath. I am hesitant to do this on our server if we do not need to.
I know this question is all over the place, but I have gotten myself quite confused and I would really appreciate any help or pushes in the right direction. My hope is that I am just making some dumb mistakes somewhere, because I don't think it should be this complicated!
Note that Solr itself is running fine and some collections I have set up that index directories of PDFs are working, no troubles. None of the solrconfig.xml files in the other collections have any request handlers or libs referring to data import handlers.
Thanks in advance! I appreciate your reading all of this! :-)
Okay so I finally got it working. As suspected, the root issue was Solr not locating the MySQL connector and data import handler jars. For the benefit of any others who might stumble across this, here is what I did. We are using Adobe ColdFusion 2016 and Solr 5.2.1 that shipped with ACF.
You do need the MySQL connector and data import handler jars. I used a version-matched data import handler called solr-dataimporthandler-5.2.1.jar and I downloaded it from here. Make sure you select the jar file in the "files" section to start the download. For the MySQL connector, I just copied the one that came from ColdFusion. Mine was called mysql-connector-java-5.1.38-bin.jar, and for my CF install, it was located at C:\ColdFusion2016\cfusion\lib.
I learned that Solr will automatically look for jars if they are in a particular place. No need for lib directives or any file editing. For me, I created a folder called "lib" in my Solr instance which is at C:\ColdFusion2016\cfusion\jetty\multicore and I put the jars in there. So the full path to the new jars is C:\ColdFusion2016\cfusion\jetty\multicore\lib, but you do not need to edit any file to account for that.
You do need to edit solrconfig.xml to account for the data import handler. For me, the only way I could get this to work was to edit solrconfig.xml for each collection. Editing any of the various other versions would not work. So for my collection called "dmfile," which I had previously created in the CF Admin, the solrconfig.xml to edit was at C:\ColdFusion2016\cfusion\jetty\multicore\collections\vfs_dmfile\conf. I added the following to the file in the section where the other request handlers were:
<requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">
<lst name="defaults">
<str name="config">data-config.xml</str>
</lst>
</requestHandler>
That's all I needed to do for solrconfig.xml.
In that same directory, create a data-config.xml file. Here's mine:
<dataSource type="JdbcDataSource"
driver="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/myDatabase"
user="myUsername"
password="myPassword"/>\
<document>
<entity name="dmfile" query="SELECT filename, ObjectID from dmfile WHERE status = 'approved'">
<field column="filename" name="filename" />
<field column="ObjectID" name="uid" />
<field column="status" name="dmfile_status" />
</entity>
</document>
To get started, I tried to keep things simple. Note how the entity name matches the name of the collection. I matched the unique ID from our database table (ObjectID) to the standard unique ID field that Solr has (uid). "Column" is the column from our database and "name" is whatever name I want Solr to use. Your database of course will likely be different.
Finally I edited schema.xml, also in the same directory:
<field name="filename" type="string" indexed="true" stored="true" required="false" />
<field name="dmfile_status" type="string" indexed="true" stored="true" required="false" />
The "name" attribute needs to match whatever you set in data-config.xml. Note that I did not add a field for uid -- it was already in schema.xml by default.
I am on a Windows server, so I went to services.msc and restarted the ColdFusion 2016 Add-On Services service. NOTE: restarting ColdFusion itself did not work for me. I needed to restart ColdFusion 2016 Add-On Services, and only that.
Finally I could reload my collection, and (more importantly) I could browse the core in the Solr admin at http://localhost:8989/solr/#/. I could select my dmfile core in the "Core Selector" dropdown, and was able to choose the DataImportHandler without getting an error.
That is how I got it to work for me. I found that I needed to repeat steps 3-6 for every core that I wished to connect to MySQL. Some documentation states that you can do at least Step 3 at a global level, but that did not work for me at all.
Anyways, it took me quite a while to figure all of that out, so hopefully this will help any other CFers out there who were stuck like I was.
We are using PloneFormGen's SaveDataAdapter, and would like users who are not site admins to be able to download the CSV. The normal permissions don't seem to allow this. Is this possible in PloneFormGen?
You're right, there is a custom permission made for the download-view named "PloneFormGen: Download Saved Input", and Products/PloneFormGen/config.py defines that Managers, Owners and Site-admins get this permission by default.
In one of your add-on's profile-folder add a file named rolemap.xml to additionally assign roles (the default-roles will remain untouched, as they are assigned via a Python-script, not a GenericSetup-file):
<?xml version="1.0"?>
<rolemap>
<permissions>
<permission name="PloneFormGen: Download Saved Input" acquire="True">
<role name="Member" />
</permission>
</permissions>
</rolemap>
Note: This will set the permission globally, meaning you cannot restrict it to locations. For finer control per location, create a role "Downloaders", assign the download-permission to it in rolemap.xml and make the permission assignable locally via the sharing-tab of an item. For the last step one could give https://pypi.org/project/collective.sharingroles/ a try.
An alternative solution for the case that exactly one user needs to get the additional privilege for downloading the content of a save-adapter:
Append /ownership_form to the URL of the save adapter, choose new owner and save.
I would like to be able to right click in a folder in PhpStorm, and select something like, "New Custom Module", which will then create directories and files as per a definition that I set up somewhere.
Is this possible at all?
Detailed description of what I would do:
In the "Edit File Templates" window (or something similar), I would add a new entry, calling it "New Custom Module". I would then +/- directories and file types that I would like to be created when I select to create that module.
For example, I could set up the "New Custom Module" to create a Controllers directory with a controller class inside it, a Model directory with a model class inside it, a composer.json file and a registration.php file. So when selecting this menu option from right clicking on a directory in the Project panel, I would get the following:
[top-level-directory]
- Controllers
- People.php
- Models
- Person.php
- composer.json
- registration.php
Ideally I could also select what the starting contents of the files would be, but if I can just create blank file/directories for now, that would be pretty great
Closest you can get is a "Project template" (saving project as a template). But unfortunately there's nothing similar to what you're requesting.
There's an existing feature request for this: https://youtrack.jetbrains.com/issue/IDEA-91565. Feel free to vote/comment.
I have a pretty basic understanding of actionscript and how to write a little bit of code with it, but I'm struggling on how to attack this problem.
We have a application that runs a bunch of BIRT reports. They are currently stored in a reports/ folder. Lately we've been getting more and more and we need to refactor these into subfolders for the various departments.
Reports/
Campus 1/
Budget Office/
report1.rptdesign
report2.rptdesign
Human Resources/
Campus 2
Campus 3
How can I get a path name to a specific report if I know the report name and that it is somewhere within the reports/* directory?
For example if the user selected report2.rptdesign, how can I get back the path "reports/campus1/budget office/"?
A url of an example or sample code to at least get me going in the right direction would be a huge help, thanks!
I did find this Flex, AIR: Search for .pdf files in specified folder, not sure if that what I need though.
Rather then having recursive search in java, try increasing a filed in DB. This approach will be better.You will be calling the service from flex to get the reports from server which will return you a Collection some what like this sample.
<reports>
<report>
<fileName> report1.rptdesign</fileName>
<filePath>Campus 1/Budget Office/report1.rptdesign</filePath>
</report>
<report>
<fileName> report1.rptdesign</fileName>
<filePath>Campus 1/Human Resources/report1.rptdesign</filePath>
</report>
<report>
<fileName> report1.rptdesign</fileName>
<filePath>Campus 2/Budget Office/report1.rptdesign</filePath>
</report>
<report>
<fileName> report1.rptdesign</fileName>
<filePath>Campus 2/Human Resources/report1.rptdesign</filePath>
</report>
</reports>
this will save one call to sever on user interaction.
How can I get a path name to a specific report if I know the report name and that it is somewhere within the reports/* directory?
Pretty sure you can't do that in the browser.