How to Make Scheduler to Execute an Action on Given Duration?

How to Make Scheduler to Execute an Action on Given Duration?

Subject : Scheduler i.e.cron-job by application(Automated Action). Related: In Application, Automated Scheduled action will run on given time duration and number of execution between the duration. Descriptions: We can make scheduler to execute any action on given duration and number of execution between the date time. Example: In below example, we are creating on schedule which is of hr.employee. That means scheduler will execute method […]

Read More

Decorators and Its Utility in Odoo?

Decorators and Its Utility in Odoo?

A decorator is a function that takes a function as input and returns a function. The anatomy of the decorator is: @decorator-expression Function-definition Decorator-expression is an expression that returns a callable thing. The callable thing has to take a single argument. Function definition is a function definition (it, therefore, must begin with def). In older version of odoo, we use a cursor, uid, context and ids […]

Read More

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

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

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

Steps to Print multiple qweb reports on single print button based on condition.

Steps to Print multiple qweb reports on single print button based on condition.

Let’s say we want to print quotation reports based on service type dropdown on single print button: i)Manufacturing Service(includes entire manufacturing process cost) ii)Labour Service(includes only labour cost)   Steps to follow: 1.create service type selection field in sale order class.   service_type = fields.Selection([(‘manufacturing_service’, ‘ManuFacturing Service’), (‘labour_service’, ‘Labour Service’)], string=’Service Type’, required=True)   If user selects service type as ManuFacturing Service print button will […]

Read More

Start Server with Particular Database without showing list of Databases

how to Start Server with Particular Database without showing a list of Databases (Login page with database selection option) For database security purpose, sometimes we need end users just to login with their respective credentials without selecting database name from database dropdown list. For this Purpose, we need to write additional options when starting up with the server i.e –db-filter and -d.   ./odoo.py –addons=addons/,/opt/odoo-9_server/Pettols/pettools/ –xmlrpc-port=8000 […]

Read More

How to Load Demo data when Loading or Upgrade Module for the first time?

How to Load Demo data when Loading or Upgrade Module for the first time?

Sometimes, we need demo data to be loaded when we upgrade the module for the first time. In this case, we have to create entries in xml. Consider a module: __init__.py Import models __openerp__.py # -*- coding: utf-8 -*- { ‘name’: “mymodule”, ‘author’: “My Company”, ‘website’: “http://www.yourcompany.com“, ‘category’: ‘Uncategorized’, ‘version’: ‘0.1’, ‘depends’: [‘base’], ‘data’: [ ‘views.xml’,    ‘demo’: [           ‘demo.xml’, # file with demo […]

Read More

How to Show the Attachments in ERP According to Users Need?

How to Show the Attachments in ERP According to Users Need?

If User Want To show attachments in form view, Above Screen will make you more clear. Suppose, you have Two attachments & want to show in another One2many field. Then you should have One notebook page as Attached Document and attachment_ids as one2many. In that one2many, attachments will be shown by that attachment button. Field in project.task class should be as follow: ‘attachment_ids’: fields.one2many(‘ir.attachment’, ‘res_id’, […]

Read More