I just want to know where we need to make changes while customizing odoo? - odoo

I am new in odoo. Can u please tell me where I need to customize an odoo business application. We have a database, XML, python files etc.
Is there any need to make change in view_XML, python or pg admin?

To customize an Odoo application you definitely don't have to change the database manually (I guess that's what you mean by pgadmin).
You should not make changes to core Odoo modules or any module for that matter, instead you should create your own modules to modify existing modules or add new features.
Themes, snippets and basic view customizations (rearrange fields or show and hide existing model fields) doesn't require to write any python file (other than the required module python files).
If you want to make extend current models or add new models then you need to create new python files

The Best way to customize odoo Module is to build a new module.
For Creating new Module best tutorial is Technical Momento book and Document provided by odoo on www.odoo.com

Related

Adding a module in sugarCRM 6.5 C.E. doesn't create a corresponding folder in custom/modules

I need to add a logic hook to a module built in Module Builder in SugarCRM 6.5( Community Edition ).
This logic hook should take all the fields that I have just saved after completing a form in a module and create a new record in a different module with these fields( in order to simulate a workflow ).
All the tutorials on the internet( on logic hooks ) talk about modifying stuff in "./custom/Extension/modules//..." but, after creating and deploying a module in sugarCRM, I do NOT have my module present in either "./custom/Extension/modules/" or "./custom/modules" .
Thank you for your time,
Those directories are for customizations and extensions like studio changes and custom code like hooks.
That those directories are not present only means that there are no customizations yet, so feel free to create those folders and add your hook inside.
Make sure that you create the directories with the correct names (as stated in the tutorials), including the correct case for all letters.
Also don't forget to give the web-process ownership/write-permissions to the all folders you create in custom, otherwise Sugar might fail to save studio changes and aggregation files at some point in the future.

Xpages : Possible to inherit all Select 2 components

I have got Select2 working. Awesome, awesome component.
We have a db with some common elements which we inherit to databases. I would like to add Select2 to this db, so it will be easily available to databases, but don't know how to do that, as you have to put some items in the package explorer.
Any way to do this?
It is possible if you inherit the whole template:
create a database with all design elements you want to have as default in a database including Select2 parts in WebContent folder
define this database as template "CommonElements" (or another unique template name) in database properties
define the template "CommonElements" as "Inherit design from master template" in every database where those design elements are needed
and make sure that every additional design element has set "Prohibit design refresh"
or inherits from a design template.
In case you have additional elements in WebContent folder set "Prohibit design refresh" flag to those design elements with File > Application > Set Prohibit Refresh Properity... too
All design elements including all WebContent folders are inherited from master template when you execute File > Application > Refresh Design... or when designer process runs on server.
I don't think that is possible. You could set up a central "resources.nsf" with the select2 components and load all the resources you need (manually) from all other databases.
Unless your users do not have internet access (either fire-walled or offline) you may as well just use a CDN. That way all your users will have a cached version of the download library on all of your sites and you don't have to worry about hosting it somehow.
https://cdnjs.com/libraries/select2
for example
It might also be worth looking at the Import and Export from Domino Designer project on OpenNTF. It allows you to create an portlist.xml file, which tells the plugin which files to import. It still requires a manual action to import, but will allow you to overwrite files.
Although using plugins is the place to aim to get to, this is a perfectly valid and good practice method for handling copying all relevant files into an NSF. It's used in XPages OpenLog Logger project on OpenNTF, for the NSF-based option.

Openerp translation report

I am currently in the process of my company's computing using openerp.
I was wondering how I could translate the reports are exported to pdf files (ie the contents of the pdf document).
Normally reports are automatically translated in the language of your user interface. So it would be enough to change the UI language (trough the settings menu in the upper right corner if your are with OpenERP 6.0).
If you want additionally your accounts names to be translated for example then you need to install the l10n_XX module for your country. But you need this module not only for account names so you may also have installed it.

Create new model in Yii without using Gii

I'm new to Yii and am taking over maintenance of a fairly completed project. In all the books and web resources it only talks about adding new models/controllers etc using the Gii tool. I have looked in the config/main.php file of this project and the Gii module has been removed and also there is no index.php page for me to simply re-add it to. The project is live on a server already.
How do I add a new model to the site? I have tried duplicating an existing model and creating a new database table but I can't seem to access it from anywhere within the app. Would I also have to edit a file in the framework somewhere to add a new reference to this model?
Or do I have to create a local development environment replica of the site and use gii there, then add the new files (presumably not just the model file otherwise what's the difference?) to the server.
Gii model generator just create file in Model folder, so you just need to duplicate one of them and change all references.
If you create some different from other models class in that folder it will work, because of autoloader.
Probably you just forgot to change some info. Check file name. It need to be EXACT same as class name. For example if your model class name is Users your file need to be Users.php
It sounds like you are trying to modify production code in your live production environment. What happens when you do something to break the site? How long can that site afford to be off-line, or have things not working quite right? It is my experience that new development should be done in a development environment and then promoted to production. Otherwise you are forced to test your changes in your live production environment, and that is a dangerous thing indeed.
Given that you are new to Yii, odds are that you aren't going to be able to write code that is bug free the first time.
Best thing to do is create a development environment to mirror production, and install Gii there. Then you can create all the models and controllers you want with Gii, test your changes, and finally promote your changes to the production environment. This is really a best practice issue. You don't want to be changing your live code with untested code.

How to create Eclipse custom java-based new File Wizard based on code templates?

I'm just starting into some Eclipse (juno) plugin experimentation. A key part of the plugin I want to create needs to provide the user with the ability to create New java-based classes. These classes may be 1 of 3 different types.
Is it possible to do this using variation of the NewFileWizard that will use a template for each class type under the hood?
For example, when the user is in the new Custom project they created from the plugin, I'd like them to be able to do a right-click, "New" and be given 3 choices. Depending on the choice, the wizard will use a corrosponding code template - filling in class name, package name, etc., and then generating the file in the proper project folder.
Please let me know if you need any clarification on what I'm asking.
Is it possible to do this using variation of the NewFileWizard that will use a template for each class type under the hood?
Yes.
You're basically going to have to get the Eclipse source code for the New File Wizard, bring it into an Eclipse plug-in project, and modify it to meet your specific needs.