Showing posts with label Framework. Show all posts
Showing posts with label Framework. Show all posts

Monday, June 21, 2010

Fix Messages, in OpenERP Server

Hello,

I am going to write after a long time, I would like to write about one module, which was written since long time, its very simple and useful for end users to remove the warning messages quickly just after installing any new module.
You will be able to get the 2 major warning messages on the OpenERP Server console, its regarding the object  "no access rules !" and "no quality certificate".
Quality certificate is one of the good features from OpenERP for the enterprise users to get the surety about the bug fix, and migration. Click here for more information.


Another warning message "no access rules !" can be remove easily, for that you need to install a module "wizard_access_rules" from trunk extra addons.
It will install setup wizard which will run after any upgrade and check for new objects which is installed from he upgrade process, also checks for the security rules.


This wizard will run just after the installing module "wizard_access_rules" and display all object which does not have any rules also read access control will be applied by default, you can change according to your requirements. also you can assign groups.

OpenERP will not display any warning messages related to access controls at next run.
Read more »

Tuesday, September 1, 2009

Tiny Security - Secure Tiny ERP in 20 minutes

Security Is an important aspect in any level of application, when ERP comes in to the picture its an very important and must be configured easily, Tiny support highly customizable it makes Tiny highly secure and stable ERP, it also provides pluggable modules like users-ldap it provides an ldap interface for the Authentication its an excellent features provides by Tiny ERP
Lets see in detail for how to customize and use the Objects provided by the Tiny to make it Secure with easy customization.......
download complete article
Read more »

OpenERP – New development in Security

Hello to All !!!

Tiny ERP have develop the new interesting features regarding security.
  • Field based Security
  • Work-flow Security
  • Security based Action
There are 3 new and 1 in development total 4 new features related to the security.

Field based Security
one can define the groups attribute on the field, page, notebook, button, or any other tag and form parsor will check the current user for the assigned groups and based on the user groups relation tiny will generate he view for current user, if user not have the access to any field, page, or notebook, these ll will automatically hidden from the user view as you can see below

here you can see there are few fields are hidden in partner contact and also one tab page is not accessible called "Extra Info" these are few lines written like as follows
page string="Extra Info" groups="base.group_admin"

Work-flow Security
this is a small and good feature, form the user side no need to change in any configuration tiny will automatically handle the things to make the work flow buttons enable or disable according to the work flow signal role's groups and current user's groups. for example in Invoice object, one role is created to confirm the invoice called "Invoice Manager" if the current user is demo user and he does not have the role to confirm the invoice e-tiny will disable the Create button for demo user while creating the invoice view for demo user, you can see in next screen.

Security based Action (Report, Wizard)
a new field added to 2 objects ir.actions.report.xml and ir.actions.wizard to have a groups based security to perform this actions. if there is a groups assign in to Report or Wizard, only user related to this groups can be able to access the Report or Wizard as you can see 2 different forms for the demo user and for the admin user.

Admin menu
here admin can access the Report Overdue Payment and all wizard as admin groups is given to the this report, same way for the Wizards admin groups is set so that all the users who belongs to the admin groups they can access report and wizard.

Demo Menu
demo user is a Data entry user must not be able to access some Actions and Reports related to Accounting so for the same view he can not be able to perform such operations and not be able to


get full documentation from here
Mantavya Gajjar
mga@tinyerp.com
http://www.tinyerpindia.com
Read more »

Tiny ERP Security Enhancements

I am happy to write that, i enhance security feature for tiny Field Based ACL, in the previous development i have done the field based security on the view side. so developer can write from the view as follows
<string="Extra Info" groups="base.group_admin">
<name="active" select="2"/>
...
...
So, in Partner form when other user which is not inside the Admin groups they can not able to access / view the "Extra Info" page, so this way developer can implement the security from the view side.
I make an enhancement in that to have the security for the read / write based on the fields. till now we work with the Access Control, and Record rules for the Security. using the Access Control one can apply the security on whole Tiny Object, new enhancement in that is Record rules then we can have a security based on the records, means we can have the record based security. and now a great feature that tiny have is Field based Security.

Developer can define the security depends on the fields while developing the Tiny Module. they can give security for read and for write permission separately.
developer just have to define fields with security parameter as follows

class res_partner(osv.osv): _description='Partner' _name = "res.partner" _order = "name" _columns = { 'name': fields.char('Name', size=128,
required=True, select=True,
write=['base.group_admin'], read=['base.group_admin']), }
res_partner()

This means that only admin group members have the permission to read and write the name field on the partner object.
so other user have the screen like as follows.



Some of the places other user which is not in the admin can see the data like "=No Permission=
this is because for the read=['base.group_admin']
Same way if write=['base.group_admin'] given so user which is not in the admin grous can not be able to change value for that field.
Read more »

Server Action Configuration with Business Process – Screencast

Hello to All,

This is my First Screen Cast to Open ERP.
This will show you how you can configure the server action for automated action, that print the report immediate after confirmation of the Invoice.
Download Video

Mantavya Gajjar
Tiny ERP Pvt Ltd.
Read more »

Server Action Configuration with Business Process

Hello to All !!!
 
After a long time i am going to write a blog on the Open ERP Planet, Thanks to Fabien to assign me a such good development work in to the OpenERP core System.
This is a new feature for the OpenERP Server 5, which provides many things with few configuration, with out writing any code, for example we would like to have an Partner Event after creating their invoice, which is not there in to the Server, but the same things you can get for the Sales Order or CRM case. without Server Action we have to create new module then override the method which confirm the invoice and in that we write a code to create thePartner Event.
with the server action we just have to configure the work flow with server action such that it create the automatic record in to the partner event list.
Another frequent requirenments is to send Email and sms based on the business process, like when any Sales order confirm we would like to send the confirmation email or sms with the customized text message, then now using the server action just we have to configure the server action and we get the result with out writing any more code.
Here are he list of action which supported by the Open ERP new feature called Server Action.
  • Python Code
  • Email
  • SMS
  • Create Object
  • Write Object
  • Trigger
  • Other Actions
for the complete detils like configuration, get the detailed document.
Mantavya Gajjar
mga@tinyerp.com
http://www.tinyerpindia.com
Read more »

Monday, August 24, 2009

OpenERP Server with MySQL

Introduction

SAServer is the Enhanced Version OpenERP-Server which supports all Major Databases. Its major aim is to make OpenERP database independent . And customer can make their existing application work with OpenERP as it and able to implement OpenERP easily on the database that is used by customer.

How to get branches?

You need to checkout branch of sa-server from bazaar:

bzr branch lp:~openerp-commiter/openobject-server/server-sa

For this server you need to get addons from this branch:

bzr branch lp:~openerp-commiter/openobject-addons/addons-sa

Use stable5.0 client for this server, Checkout branch from bazaar:

bzr branch lp:openobject-client/5.0

How to install SQLAlchemy?

Install newer version of sqlalchemy from 0.5.x series,
Download SQLAlchemy  from this link:

http://sourceforge.net/projects/sqlalchemy/files/sqlalchemy/SQLAlchemy-0.5.3.tar.gz/download

Configure MySQL

In MySQL you need to create new user named tiny:

CREATE USER 'tiny'@'localhost' IDENTIFIED BY 'password';

Grant privileges to this user by:

GRANT ALL PRIVILEGES ON *.* TO 'tiny'@'localhost'

How to start server?

You can start sa-server using --engine option,

--engine='database://USER:PASSWORD@HOSTNAME:PORT'

Where,
USER : MySQL user (Super User)
PASSWORD : Password of USER
HOSTNAME : Host on which MySQL server is running (By Default : localhost)
PORT : Port on which MySQL server is running (By Default : 3306)

Ex:  python openerp-server.py  --engine='mysql://tiny:<password>@localhost'  --addons-path=../../addons-sa/

Now OpenERP server is ready to work with MySQL Database.
Read more »

Tuesday, June 30, 2009

New action ‘Submenu’, fields_view_get API change

Hello all,

Server side improvement
New attribute added on fields_view_get method (trunk)
old definition: def fields_view_get(self, cr, user, view_id=None, view_type=’form’, context=None, toolbar=False)
New definition: def fields_view_get(self, cr, user, view_id=None, view_type=’form’, context=None, toolbar=False, submenu=False)
Client side Improvement
There is new feature added on gtk client (will available in etiny soon) for submenu.
Now we can have submenus on the top of the form window (inside the tab).For this there is one new action type (ir.actions.submenu) defined on ir.actions.act_window, which allow user to make different submenus on one form:
screenshot-1
So here user can manage all information(Tasks,Timesheet,Bugs,...Dashboard) of project from a single point of view and navigate easily for each links available for project!
You can define your submenu action like this:
<record model="ir.actions.act_window" id="view_project_project_portal">
<field name="name">Project Form</field>
<field name="res_model">project.project</field>
<field name="type">ir.actions.submenu</field>
<field name="view_type">form</field>
<field name="context" eval="{'action_portal':'project'}"/>
<field name="menus">[{'name':'Tasks','action_id':'action_portal_project_task','icon':'terp-project'},{'name':'Timesheets','action_id':'act_hr_timesheet_sheet_portal_form','icon':'terp-hr'},
.........
{'name':'Dashboard','action_id':'view_project_project_portal','icon':'terp-graph'}]
</field>
</record>

You can have latest client/server to use this functioanality from launch pad..
Enjoy new feature!


Thanks,
OpenERP Team
Read more »

Monday, December 29, 2008

Dashboard

Dashboard is an interface that organizes and presents information in a way that is easy to read. It is a Visualization that provides graphical depictions of current key performance indicators in order to enable faster response to changes in areas such as sales, customer relations, production, purchase, and inventory levels.

Sales Dashboard - It is very important for an organization to get all the updates of quotations and sales invoice. With OpenERP one can get top ten sales of the month, total sales of the month and sales case in the month in flash pie chart.


Production Dashboard
 
 
 




Read more »