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

Steps to Send SMS from application to Mobile number

Steps to Send SMS from application to Mobile number

Steps to Send SMS from application to Mobile number This blog post is all about how to Steps to Send SMS from application to Mobile number.We can send SMS via our application to the customer’s mobile number. You can download odoo 9.0 apps i.e. sms_frame. This application will give all the interface, wizards, outgoing SMS history, Template etc. Also, you have to do configurations for […]

Read More

How to Create Simple WordPress Plugin?

How to Create Simple WordPress Plugin?

To create simple plugin in wordpress, Create a folder in <wordpressrootdirectory>/wp-content/plugins/ Create a folder of any name. for eg:Test Inside test create a file name plugin.php and add following code. <?php /**Now go to settings/Plugin in backend your plugin will be shown in the list of plugins just click on activate button to enable your plugin. * Plugin Name: My Plugin Name * Plugin URI: […]

Read More

How to Store Attached Document of Lead or deal in Company Drive Using Business Processes

How to Store Attached Document of Lead or deal in Company Drive Using Business Processes

First we create Business process template for Lead, which is run during creation Lead. Screenshot 1–   Then Drag and drop “Create Folder on Drive” – Activity From Drive. Screenshot2–   Then Add Action Parameters. Create in: Which is Public Drive for our Business process, Drive: Company Drive Folder Name: Will be Lead Name(Select Lead Name from Insert Value), etc. as per below screenshot. Screenshot3– […]

Read More

How to create Responsive Web Design with Media Query Code (CSS)?

How to create Responsive Web Design with Media Query Code (CSS)?

With the expanding number of cell phones, working systems and their renditions, screen sizes and their resolutions, the requirement for versatile programs to get to sites likewise develops. The test then is to guarantee that a solitary form of the source code of UI plans on the server-side can render the site page effectively on various screen sizes. In this manner, versatile empowering web applications […]

Read More

How To Manage Manufacturing Orders In Odoo?

How To Manage Manufacturing Orders In Odoo?

Let’s say we want count of all manufacturing orders in progress state and then display that count in menu for user understanding. Steps To Follow:- 1.Inherit manufacturing class and IrNeedactionMixin class (class used to get count on menu) and define the state field. class mrp_production(models.Model): _name = ‘mrp.production’ _inherit = [‘mrp.production’,’ir.needaction_mixin’] state = fields.Selection([(‘draft’,’New’),(‘picking_except’, ‘Picking Exception’),                                                                      (‘confirmed’,’Waiting Goods’),(‘in_production’,’In Progress’),                                                   (‘cancel’,’Cancelled’),(‘done’,’Manufacturing Completed’),                                                                  (‘under_inspection’,’Under […]

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 see subordinate’s leave and Time sheets with Record Rule?

How to see subordinate’s leave and Time sheets with Record Rule?

Take employee_ids as One2many Field of hr_employee in res_users class. Inverse field should exist in hr_employee class. Reporting person of that employee should able see his respective leaves and Time sheet submitted by that employee. Have 2 fields in hr_employee class that employee hr manager and reporting manager who have access to see his subordinate’s leaves and time sheet. As, In res_users class fields are” […]

Read More

How to Generate Report Using xlswriter Module in Python?

How to Generate Report Using xlswriter Module in Python?

How to Generate Report Using xlswriter Module in Python? import xlsxwriter # Create a workbook and add a worksheet. workbook = xlsxwriter.Workbook(‘ExcelTutorial.xlsx’) worksheet = workbook.add_worksheet() # Some random data we want to insert into our excel expenses = ( [‘A’, 1000], [‘B’,   100], [‘C’,  300], [‘D’,    50], ) # Start from the first cell. Rows and columns are zero indexed. row = 0 col = […]

Read More