How to Make Configuration Wizard for Application Settings

How to Make Configuration Wizard for Application Settings

It provides support for setting default values, assigning groups to employee users, and installing modules. To make such a ‘settings’ wizard, define a model like: class my_config_wizard(osv.osv_memory): _name = ‘my.settings’ _inherit = ‘res.config.settings’ _columns = { ‘default_foo’: fields.type(…, default_model=’my.model’), ‘group_bar’: fields.boolean(…, group=’base.group_user’,  implied_group=’my.group’), ‘module_baz’: fields.boolean(…), ‘other_field’: fields.type(…), } The method “execute“ provides some support based on a naming convention: For a field like ‘default_XXX’, “execute“ sets the (global) default value of the field ‘XXX’ in the model named by “default_model“ to the field’s value. E:g- “default_sale_tax_id” in account.config.settings allows you to set default taxes for sale. For a selection field like ‘group_XXX’ composed of 2 integers values (‘0’ and ‘1’), “execute“ adds/removes ‘implied_group’ to/from the implied groups of ‘group’, depending on the field’s value. E.g-”group_product_variant” in purchase.config.the setting allows you to define some variant of the same products if Checked. For a boolean field like ‘module_XXX’, “execute“ triggers the immediate installation of the module named ‘XXX’ if the field has value “True“. E.g-”module_crm_voip” in sale.config.setting if checked then it leads to installation of VOIP module. For a selection field like ‘module_XXX’ composed of 2 integers values (‘0’ and                                            ‘1’),“execute“ triggers the immediate installation of the module named ‘XXX’ if the field has the integer value “1“. *   For the other fields, the method “execute“ invokes all methods with a name that starts with ‘set_’; such methods can be defined to implement the effect of those fields. In View file add ‘oe_form_configuration’ class to the <form> tag. Contact Us for Customized ERP Solutions

Read More

How To Inherit JS In Xml?

How To Inherit JS In Xml?

Add custom css and javascript files in odoo.   Topic-1:Adding static resources (CSS and JavaScript) to Odoo Example : Creating the XML   The first step is to create a new XML file in your custom module. Create a new XML file under yourModuleName/views, like this: New XML file Now the first thing to do is to tell __openerp__.py that you’ve added this new XML […]

Read More

How To Get Emails Using Python And Imaplib

How To Get Emails Using Python And Imaplib

Below is the process of getting mails using python & imaplib Read on   1)connecting to mail server- import imaplib import email imap_server = imaplib.IMAP4_SSL(“server_name”,port) #Example:address of gmails imap server- imap.gmail.com:993 Imap_server.list() #this returns list of all labels/folders in email imap_server.login(username, password)# if successful login will return (‘OK’, [‘Logged in’])     Fetching mails from server – #Here we will be fetching unread mails. Imap_server.select(“Inbox”)#we […]

Read More

Decoding & Setting Up Image Display in Template

Decoding & Setting Up Image Display in Template

Subject : Display Images in Email (send using Templates). Related : Send Email using Templates via applications. Descriptions: We can send email using email template to the custom. That time suppose we have company logo then we would like to image display  logo in email. Sometimes image will not show in email or display in broken format. For that, we have to use python base64 […]

Read More

How Customized ERP Software Enhances Efficiency of an Enterprise?

How Customized ERP Software Enhances Efficiency of an Enterprise?

In today’s competitive world enterprises are utilizing different methodologies to stay ahead in the business along with. ERP software is such a solution suitable for small and medium enterprises which helps them in saving time and money. Still some ventures are skeptical about implementing and integrating Enterprise resource planning in their business structure due to the price tag it comes with. But they fail to […]

Read More

Purchase Management Software An Integral Part Of ERP

Purchase Management Software An Integral Part Of ERP

The IT methodology of an association concentrates on conveying IT systems and solutions to various capacities to catch the cost preferences empowered by those systems. Every capacity may have the expert to choose the zones to be robotized in conference with IT office. On the other hand, associations may convey ERP based systems that incorporates the entire association. The part of acquiring is viewed as […]

Read More

Warehouse Management Systems An Indispensable Part Of The Production Network

Warehouse Management Systems An Indispensable Part Of The Production Network

Warehouse Management Systems An Indispensable Part Of The Production Network Warehouse Management Systems or WMS are set up to help control the capacity and development of the materials inside the distribution center. They are an indispensable part of the production network and control forms inside the warehouse, for example, transporting and picking and pressing. Additionally, in light of continuous, the frameworks help to coordinate and […]

Read More

How Invoicing Software Benefits your Business

How Invoicing Software Benefits your Business

Invoicing software is a basic apparatus for any small, enormous or medium size venture. The software engages the entrepreneurs by permitting them the adaptability to run their mind boggling accounting without breaking a sweat. It permits you to rapidly react to the changing elements of internet showcasing. Specific software is accessible in the market for extensive and little associations, and furthermore for consultants. In any […]

Read More

Elements to Look for in Your Contact Management Systems

Elements to Look for in Your Contact Management Systems

When you begin to achieve the point in your business where contact management systems aren’t a comfort, yet rather a need, you’ll rapidly start to understand that there are numerous alternatives out there for you to look over. On the off chance that you need to develop your business effectively, dealing with your contacts viably is a standout among the most critical main jobs. On […]

Read More

How to Add Custom Field in WordPress Post?

How to Add Custom Field in WordPress Post?

Meta-data is taken care of with key/value sets. The key is the name of the meta-data component. The value is the data that will show up in the meta-data list on every individual post that the data is related with. Function Reference : add_post_meta() For Example : We’ll include two custom fields, one called “At present Reading” and the other “Author Name”. The accompanying guidelines […]

Read More