Openerp Manufacturing Book - Complete
Openerp Manufacturing Book - Complete
Openerp Manufacturing Book - Complete
OpenSourceSoftware MakingBusinessApplicationsaccessibletoAllCompanies
Youarefree:
tosharetocopy,distribute,display,andperformthework toremixtomakederivativeworks
Underthefollowingconditions:
Foranyreuseordistribution,youmustmakecleartoothersthelicensetermsofthiswork. Thebestwaytodothisiswithalinktothewebpagecitedabove. Anyoftheaboveconditionscanbewaivedifyougetpermissionfromthecopyrightholder. Nothinginthislicenseimpairsorrestrictstheauthor'smoralrights. FirstEdition Manyofthedesignationsusedbymanufacturersandsupplierstodistinguishtheirproductsareclaimedastrademarks.Where thosedesignationsappearinthisbook,andOpenObjectPresswasawareofatrademarkclaim,thedesignationshavebeen printedininitialcapitals. Whileeveryprecautionhasbeentakeninthepreparationofthisbook,thepublisherandtheauthorsassumenoresponsibilityfor errorsoromissions,orfordamagesresultingfromtheuseoftheinformationcontainedherein.
OpenObjectPressisadivisionofOpenERPS.A. (www.openerp.com)
Copyright 2011ElsVanVosselandFabienPinckaers
FirsteditionJuly2011 ISBN:9782960087635
SpecialThankstoMarcLaporte,OlivierLaurent, GaryMalherbeandGrgoryDethier
OpenERPisatrademarkofOpenERPS.A. ThesoftwareisavailableundertheAGPLlicenseversion3.
FromthesameEditor
OpenERPforRetailandIndustrialManagementStepstowards Sales,LogisticsandManufacturingIntegration,2009, FabienPinckaersandGeoffGardiner,ISBN:9782960087604 DriveyourSales&MarketingActivitieswithOpenERP CloseLeads,AutomateMarketingCampaignsandGetAccurate Forecasts,2011,ElsVanVosselandFabienPinckaers, ISBN:9782960087611 IntegrateyourLogisticProcesseswithOpenERPEfficient WarehouseManagementwithSalesandPurchasesIntegration, 2011,ElsVanVosselandFabienPinckaers, ISBN:9782960087628
TheAuthors:ElsVanVosselandFabienPinckaers
Contents
Foreword
Open Source Software: Making Business Applications accessible . . . . . . . . . . . . . . . The OpenERP Solution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Structure of this book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
xi
xi xii xii
About the authors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii Fabien Pinckaers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii Els Van Vossel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
I
1 2 3
1
3 7 21 21 22 22 25 26 29 30 32 34 35 37 38 39
40 41 42 43 44 44 45 45 46
Testing a Complete Sales Cycle according to an Example . . . . . . . . . . . . . . . . 3.6.1 3.6.2 3.6.3 3.6.4 Sales Order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Preparing Goods for Shipping to Customers . . . . . . . . . . . . . . . . . . . Invoicing Goods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Customer Payment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
II
4
47
49 49 49 49 53 53 55 55 56 57 59 59 61
Purchase Analysis through Analytic Accounts . . . . . . . . . . . . . . . . . . . . . . 4.2.1 4.2.2 Powerful Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . To Each Enterprise its own Analytic Chart of Accounts . . . . . . . . . . . . .
III
5
69
71 73 76 76 79
vi
Shop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Stock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
84 84 88 88 92 94 99
Keeping Track of Stock Movements . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.3.1 5.3.2 5.3.3 5.3.4 5.3.5 5.3.6 5.3.7 Goods Receipts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Internal Stock Moves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Shipping of Goods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Logistics Conguration through Advanced Routes . . . . . . . . . . . . . . .
Procurement Methods Make to Stock and Make to Order . . . . . . . . . . . 104 Choosing Supply Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 Packaging with Various Logistics Units of Measure . . . . . . . . . . . . . . . 107
5.4
Scheduling Procurements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 5.4.1 5.4.2 5.4.3 5.4.4 Processing Exceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 Manual Procurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 Sales Forecasts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113 Production Plan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
5.5
Managing Lots and Traceability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115 5.5.1 5.5.2 5.5.3 Stock Moves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 Lots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 Traceability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Scrapping Products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 Identifying Products and Locations with Barcodes and RFID Devices . . . . . . . . . 121 Financial Inventory Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 5.8.1 5.8.2 Manual and Real-time Stock Valuation . . . . . . . . . . . . . . . . . . . . . 121 Managing Transportation Costs . . . . . . . . . . . . . . . . . . . . . . . . . 122
5.9
Organize your Deliveries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 5.9.1 5.9.2 The Different Journals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 Using the Journals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
5.10 Estimating Delivery Dates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 5.10.1 Standard Delivery Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 5.10.2 Schedule Logistic Flows according to MRP1 Rules . . . . . . . . . . . . . . . 128 5.11 Incoming and Outgoing Products Planning . . . . . . . . . . . . . . . . . . . . . . . . 128 5.12 Managing Inventory Reconciliation . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
vii
5.13 Building Reports to Track Activity . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 5.14 Import / Export . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 5.14.1 Stock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 5.14.2 Rental Locations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 5.14.3 Consigned Products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 5.15 Stock Location Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
IV
6
137
139
Bill of Materials and Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 6.1.1 6.1.2 6.1.3 6.1.4 Using Bills of Materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140 Multi-level Bills of Materials . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 Phantom Bills of Materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 Bills of Materials for Kits/Sets . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Work Centers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147 Routings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 Manufacturing Orders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 Complete Production Workow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151 6.5.1 6.5.2 6.5.3 6.5.4 6.5.5 6.5.6 The Sales Order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 Producing an Intermediate Product . . . . . . . . . . . . . . . . . . . . . . . . 152 Finished Product Manufacturing . . . . . . . . . . . . . . . . . . . . . . . . . 154 Subproduct Production . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155 Scrapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 Production Orders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
6.6
Logistics and Manufacturing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159 6.6.1 6.6.2 Manufacturing Stock Locations . . . . . . . . . . . . . . . . . . . . . . . . . 159 Traceability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
6.7
Managing Repairs: from Repair to Invoicing and Stock Movements . . . . . . . . . . 161 6.7.1 6.7.2 6.7.3 6.7.4 Entering Data for a New Repair . . . . . . . . . . . . . . . . . . . . . . . . . 162 Repair Workow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 Invoicing the Repair . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 Stock Movements and Repairs . . . . . . . . . . . . . . . . . . . . . . . . . . 165
viii
6.8
Forecasting and Supplying . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166 6.8.1 6.8.2 6.8.3 Scheduler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166 Planning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167 Procurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
6.9
6.10 Matching Sales Orders and Bills of Materials . . . . . . . . . . . . . . . . . . . . . . 175 6.11 Production and Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
V
7
On Site installation
OpenERP Installation on Linux 7.1
179
181
PostgreSQL Server Installation and Conguration . . . . . . . . . . . . . . . . . . . . 181 7.1.1 7.1.2 Example on Ubuntu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 Setup a PostgreSQL user for OpenERP . . . . . . . . . . . . . . . . . . . . . 182
7.2
OpenERP Server Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184 7.2.1 7.2.2 7.2.3 7.2.4 Installing the required packages . . . . . . . . . . . . . . . . . . . . . . . . . 184 Downloading the OpenERP Server . . . . . . . . . . . . . . . . . . . . . . . . 186 Testing the OpenERP Server . . . . . . . . . . . . . . . . . . . . . . . . . . . 186 Installing the OpenERP Server . . . . . . . . . . . . . . . . . . . . . . . . . . 186
7.3
OpenERP Client Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186 7.3.1 7.3.2 7.3.3 7.3.4 7.3.5 Installing the required packages . . . . . . . . . . . . . . . . . . . . . . . . . 186 Downloading the OpenERP Client . . . . . . . . . . . . . . . . . . . . . . . . 188 Testing the OpenERP Client . . . . . . . . . . . . . . . . . . . . . . . . . . . 188 Installing the OpenERP Client . . . . . . . . . . . . . . . . . . . . . . . . . . 188 Conguring a PDF Viewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
7.4
OpenERP Web Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 7.4.1 7.4.2 7.4.3 7.4.4 Downloading & Installing the OpenERP Web Client . . . . . . . . . . . . . . 189 Testing the OpenERP Web Client . . . . . . . . . . . . . . . . . . . . . . . . 190 Installing the OpenERP Web Client . . . . . . . . . . . . . . . . . . . . . . . 190 Web Browser Compatibilities . . . . . . . . . . . . . . . . . . . . . . . . . . 190 193
ix
Downloading OpenERP All-In-One . . . . . . . . . . . . . . . . . . . . . . . 193 Installing the OpenERP All-In-One . . . . . . . . . . . . . . . . . . . . . . . 194 Starting the OpenERP Client . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
PostgreSQL Server Installation and Conguration . . . . . . . . . . . . . . . . . . . . 197 8.2.1 8.2.2 Installing PostgreSQL Server . . . . . . . . . . . . . . . . . . . . . . . . . . 197 Setup a PostgreSQL User . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
8.3
OpenERP Server Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199 8.3.1 8.3.2 8.3.3 8.3.4 8.3.5 Downloading the OpenERP Server . . . . . . . . . . . . . . . . . . . . . . . . 199 Installing the OpenERP Server . . . . . . . . . . . . . . . . . . . . . . . . . . 199 Customized Conguration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 Monitoring the OpenERP Server . . . . . . . . . . . . . . . . . . . . . . . . . 203 Congratulations, you have successfully installed OpenERP Server . . . . . . . 205
8.4
OpenERP Client Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 8.4.1 8.4.2 8.4.3 Downloading the OpenERP Client . . . . . . . . . . . . . . . . . . . . . . . . 206 Installing the OpenERP Client . . . . . . . . . . . . . . . . . . . . . . . . . . 206 Starting the OpenERP Client . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
8.5
OpenERP Web Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 8.5.1 8.5.2 8.5.3 Downloading the OpenERP Web . . . . . . . . . . . . . . . . . . . . . . . . . 208 Installing the OpenERP Web . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 Starting the Web Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
8.6
Troubleshooting and Windows Complementary Install Information . . . . . . . . . . . 210 8.6.1 PostgreSQL Administration . . . . . . . . . . . . . . . . . . . . . . . . . . . 210 213
Index
Foreword
Information Systems have played an increasingly visible role over the past several years in improving the competitiveness of business. They are more than just tools for handling repetitive tasks; they will guide and advance all of a companys daily activities. Integrated Management Software is today very often a key source of signicant competitive advantage.
Some may look at the Business Application market as a mature market dominated by a few large key players, with no new business opportunities. This would be ignoring the market reality. So many customers are frustrated by their experience with existing vendors; so many companies around the world need to have access to business applications, but cannot afford them. OpenERP believes that business applications should not be a luxury. That any company, anywhere in the world, should be able to afford the best tools to professionally expand business. That is one of the reasons why OpenERP needs to break the existing rules of the ERPs and the Business Applications market. Customers should use their budget smartly and invest in customizing the application to their specic needs, rather than paying expensive license fees. OpenERP is committed to the Open Source Business Model precisely because Open Source allows for this. Open Source is a disruptive model, as it creates more value for the customers. For decades, customers have developed applications which remained specic to their own needs, and in the end proved extremely expensive to maintain. Open Source means that customers can benet from past developments of other companies. Also by contributing to the evolution of the software, the users will enjoy the guarantee that their development will be included in future versions of the software. One of the major advantages is that such a Community brings a wealth of new functionality. Open Source also allows us to engage with our customers differently. Since there is no licensing cost, any potential customer can download, test and use the software. OpenERP has no need for an expensive sales force to promote the product. OpenERP just needs to make the best product and make it available to customers. Open Source allows for many barriers in this industry to be broken. The software is available to many companies who could otherwise not afford expensive business applications license fees. The OpenERP solution allows customers to use their money smartly and tailor the software to their individual needs. OpenERP leverages from its customer base to enrich the software and nally eradicate any lock-in to allow customers to use and even drop the software freely.
xi
xii
Educated as a Professional Translator in Antwerp, she worked as an independent translator on the localization of major ERP software. Els acquired ERP knowledge and decided to start working as a functional ERP consultant and a Technical Communicator for ERP software. As such, the world of OpenSource software became more and more attractive. She started working with OpenERP software in her free time and doing so, Els really wanted to meet Fabien Pinckaers to share thoughts about documentation strategy. Now Els is reviewing and writing the OpenERP Books. Being an author of several Software Manuals, she nds it exciting to work on the OpenERP documentation and continuously take it to a higher level. Please note that this is a hell of a job, but Els nds great pleasure in doing it! Follow Els on her blog http://training-openerp.blogspot.com/ or on twitter elsvanvossel.
xiii
Acknowledgements
From Els Van Vossel Thank you Fabien, for offering me the opportunity to work with OpenERP. I thank all OpenERP team members for their support and understanding. My special thanks to my family who encouraged me to write this book. From Fabien Pinckaers I address my thanks to all of the team at OpenERP for their hard work in preparing, translating and re-reading the book in its various forms. My particular thanks to Laurence Henrion and my family for supporting me throughout all this effort.
xiv
Part I
In this chapter, you can start exploring OpenERP through a basic conguration, with the modules that are discussed in this book. As mentioned before, we want to show an integrated ow, not just manufacturing management. Where appropriate, we will also talk about the sales part. For information about advanced sales features, please refer to the book Integrate your Logistic Process with OpenERP - Efficient Warehouse Management with Sales and Purchases Integration. Use a web browser of your choice to connect to OpenERP Web.
Figure 1.1: Web Client at Startup Start by creating a new database from the Welcome page by clicking Databases and then completing the following elds on the Create Database form. Super admin password : by default it is admin , if you or your system administrator have not changed it, New database name : DemoCompany , Load Demonstration data checkbox: checked, Default Language : English (US), Administrator password : admin (because it is the easiest to remember at this stage, but obviously completely insecure), Conrm password : admin . Press Create to start creating the database.
Language You can install OpenERP in many languages. To be able to easily follow the instructions in this book, we recommend you to choose English (US).
OpenERP suggests that you congure your database using a series of questions. In the software, these series of questions are managed through so-called Configuration Wizards. Click the Start Configuration button to continue. The next conguration wizard will help you to decide what your user interface will look like, whether the screens will only show the most important elds - Simplified - or whether you also want to see the elds for the more advanced users, the Extended view. Select Extended and click Next to continue. User Preferences You can easily switch from Simplied to Extended view by changing your User Preferences.
In the next wizard, you can ll your company data, select your companys base currency and add your company logo which can be printed on reports. Click Next to continue. Select the Warehouse Management, Purchase Management, Sales Management, Manufacturing and Accounting & Finance business applications for installation and click Install. Now OpenERP will start to install these ve applications, allowing you to do a complete cycle, from sales / warehouse / purchase to invoice. You will have to wait for the next conguration wizard to be displayed (Loading will appear).
Figure 1.2: Selecting the Required Functionality OpenERPs modularity enables you to install a single Business Application (such as Purchase) if that is all you need. Of course, you can choose to install extra applications such as Sales Management, to handle quotations, sales orders and sales invoices as well. For now, please install Warehouse Management, Purchase Management, Sales Management, 4 CHAPTER 1. CONFIGURING YOUR OPENERP
Manufacturing and Accounting & Finance, as these ve Business Applications will be discussed in this book. Recongure Keep in mind that you can change or recongure the system any time, for instance through the Recongure option in the main bar.
When you choose a business application for installation, OpenERP will automatically propose to add or congure related (smaller) applications to enrich your system. When you install Sales, OpenERP will also ask you whether you want to install Invoicing Journals for instance. The gure Selecting Accounting Conguration (page 5) shows the Accounting Application Conguration screen that appears when you select Accounting & Finance to be installed.
Figure 1.3: Selecting Accounting Conguration Select the Generic Chart of Account and ll in the Sale Tax (%) applicable in your country. The Purchase Tax will automatically be set as well. Click one of the disk icons in front of the bank accounts to conrm the bank accounts to be created. Then click Congure to continue the conguration. OpenERP Logistics & Manufacturing Management offers lots of features. You can easily manage your address book (customers, suppliers, ...), keep track of procurements and sales, manage your warehouse and inventory, and much more. The gure Selecting Purchase Conguration (page 6) shows the Purchases Application Conguration screen that appears when you select Purchase Management to be installed. Simply click Configure to continue the database creation. The following wizards will appear: Congure your Sales Management application: click Configure to accept the default settings (no options checked).
Figure 1.4: Selecting Purchase Conguration Congure your MRP Application Conguration application: click Configure to accept the default settings. Congure your Accounting application: click Configure to accept the default settings. Congure Sales Order Logistics: click Next to accept the default settings. OpenERPs menu will be displayed, because your system is now ready for actual conguration. In the next chapter Complete Example: Sell, Check the Stock, Manufacture and Purchase (page 7) you will start working in the Manufacturing application in a step-by-step approach. As your business is growing and evolving all the time, your requirements as to the use of OpenERP are likely to change. To sustain your growth, you can easily extend your Logistics & Manufacturing Management with other OpenERP business applications, such as HR or CRM, to name some. OpenERP offers this exibility; you can start with one business application and gradually complete OpenERP to suit your ever changing needs!
In this chapter, we will show you a complete Sales / Purchase / Manufacturing / Warehouse ow. We will explain how to create a product, create a sales order, have an automatic purchase proposal and / or production order, produce and receive the goods, deliver to the customer, and get sales and purchase invoices in a step-by-step scenario. First you will get an explanation about the scenario (what Thomas or one of his colleagues is supposed to do). Then the Notes will learn you how Thomas (or a colleague of his) enters the information in OpenERP. For the simplicity of the use case, we will do all of the steps under the Admin user. Please note that we will not discuss all elements in detail in this chapter. Later in the book, you will nd all required information (apart from the advanced sales features). Simplied or Extended View In OpenERP your user interface will look slightly different according to the User Preferences. In Simplified view, the screens will only show the most important elds / tab pages. To see also the elds for the more advanced users, you should switch to the Extended view. You can easily switch from Simplied to Extended view by changing your User Preferences through the Edit Preferences button. For this use case, please switch to Extended view.
Your company will have a stand at the House & Design Fair to promote a series of products. Thomas, the salesman, shows the new products to the visiting prospects and customers. 1. Create a new customer John Smith from the company Clarkson Ltd. visits your stand and decides to order the brandnew Desk and Chair you are promoting. Thomas will have to create this new customer in OpenERP.
New Customer To create a new customer, Thomas clicks the Sales button in OpenERPs main screen. Then he goes to Sales Address Book Customers and clicks the New button. The name of a customer is in blue, because it is a mandatory eld, so Thomas enters Clarkson in that eld. He notices that the Customer check box is already checked. Thomas enters John Smith in the Contact Name, he selects the Default address type. In the Street eld, Thomas enters London Street 40; he also enters the City London and the Country United Kingdom as shown in the screenshot below. He takes a look at the other three tabs and decides to keep the default values. Thomas then clicks the Save button to store the new customer.
2. Create a new product category and product Because the desk and the chair from the new OfceSecrets series do not yet exist in OpenERP, Mitchell, the Product Manager, will create this brandnew desk as a Make to Order product that will be bought directly from the supplier concerned. He will have to create a new product category for the OfceSecrets series too. Conguring Products For more information about conguring products, please refer to the next chapter Creating Products and their Categories (page 34).
8 CHAPTER 2. COMPLETE EXAMPLE: SELL, CHECK THE STOCK, MANUFACTURE AND PURCHASE
Product Category Product categories do have an effect on the products assigned to them, and a product may belong to only one category. To create a new product category, Mitchell goes to Warehouse, selects the menu Conguration Product Products Categories and clicks New to get an empty form for dening a product category. Mitchell enters OfficeSecrets in the Name eld and adds it to the parent category All products / Sellable. He leaves the other elds as such, and clicks Save.
Then Mitchell will create three new products. Note that he could also have created the new product category directly from the Product form.
CHAPTER 2. COMPLETE EXAMPLE: SELL, CHECK THE STOCK, MANUFACTURE AND PURCHASE 9
Product To create a new product, Mitchell goes to Warehouse Product Products and clicks the New button. The name of a product is in blue, because it is a mandatory eld, so he enters 1600 Desk Wave Right-hand W1600x D1200x H725mm Maple in that eld. He notices that the Can be Sold and Can be Purchased check boxes are already checked by default. Mitchell selects the Stockable Product product type, because he wants to keep track of the stock movements of the desks. In the Procurement Method eld, Mitchell selects Make to Order, because the company decided to only buy the product at the supplier when there is a sales order for it. The Supply Method will be Buy. He sets the Cost Price to 300 and the Sales Price to 541.25, as shown in the screenshot Product (page 11). Mitchell selects the product category OfficeSecrets. Now he just has to add the supplier from whom he will buy the desks. He clicks the Suppliers tab, then clicks New. He clicks the Magnifying glass to get a list of suppliers, from which he selects Wood y Wood Pecker. He sets the minimal quantity to 1 and clicks the Save & Close button. He takes a look at the other tabs and decides to keep the default values. He then clicks the Save button to store the new product. To create the component to be included in the Bill of Material, Mitchell clicks the Duplicate button to duplicate the Desk (available when a product is not in Edit mode). He changes the name to Leather for Chair in that eld. He unchecks the Can be Sold checkbox. Mitchell changes the Procurement Method to Make to Stock, because the company needs a permanent stock of leather to be able to full the customers demands. He sets the Cost Price to 20 and the Sales Price to 0. Mitchell then clicks the Save button to store the new product. To create another component to be included in the Bill of Material, Mitchell clicks the Duplicate button to duplicate the Leather for Chair. He changes the name to Chair Frame in that eld. He sets the Cost Price to 100. Mitchell then clicks the Save button to store the new product. To create the nished product, Mitchell goes to the list of products, opens the Desk product and clicks the Duplicate button to duplicate the Desk (available when a product is not in Edit mode). He changes the name to Leather Operator Chair in that eld. In the Procurement Method eld, Mitchell selects Make to Order, then he changes the Supply Method to Produce. He sets the Cost Price to 200 and the Sales Price to 325.50. From the supplier tab, Mitchell deletes the supplier by clicking the black cross. He then clicks the Save button to store the new product.
3. Add Minimum Stock Rules To make sure the leather and the frame is always in stock, Mitchell has to dene minimum stock rules, telling OpenERP how many goods have to be ordered to keep a good stock level. 10 CHAPTER 2. COMPLETE EXAMPLE: SELL, CHECK THE STOCK, MANUFACTURE AND PURCHASE
Minimum Stock Rules To enter minimum stock rules for the Leather for Chair product, he clicks the Minimum Stock Rules action, and clicks the New button. Mitchell notices that the product is already preset in the form. He selects the OpenERP S.A. warehouse and notices that the Stock location is automatically set. As a minimum quantity, he adds 10 and the maximum quantity will be 40. He then clicks the Save button to store the minimum stock rules, as shown in the screenshot Minimum Stock Rules (page 11). Do the same for the frame.
4. Create a Bill of Material To produce the chair from the frame and the leather seat, Mitchell has to create a Bill of Material for the nished product (the Chair). This way, he will tell OpenERP which components are required to produce the Chair. CHAPTER 2. COMPLETE EXAMPLE: SELL, CHECK THE STOCK, MANUFACTURE AND PURCHASE 11
BoM Mitchell opens the Chair product, clicks the Bill of Materials action, then clicks the New button. Mitchell notices that the Chair is already preset in the form. He clicks the New button next to Components to add the Leather for Chair. He clicks the disk in front of the line to save his changes. Then he adds a new line (which is displayed automatically) for the Chair Frame and clicks the disk to save. Finally, Mitchell clicks the Save button at the top.
BoM You can also create a Bill of Materials from the Manufacturing Master Data Bill of Materials. More information on Bills of Material will be provided in the next chapters.
5. Warehouse and locations Now Thomas will have a look at how the warehouse and the locations have been organised. Conguring locations We will not create a warehouse and congure locations in this chapter. For more information, please refer to the chapter Managing your Warehouse (page 69) later in this book. Just have a look at the list of locations dened with the demo data.
Warehouse and Location Structure OpenERP has three predened top-level location types: Physical Locations which dene where your stock is physically stored, Partner Locations for the customer and supplier stock and Virtual Locations representing counterparts for procurement, production and inventory. Thomas clicks Warehouse Conguration Warehouse Management Locations to display a list view of the locations.
6. Create a sales quotation The customer Clarkson asked to receive a quotation for two Ofce Desks and two chairs from the OfceSecrets series. Thomas enters the sales quotation.
12 CHAPTER 2. COMPLETE EXAMPLE: SELL, CHECK THE STOCK, MANUFACTURE AND PURCHASE
Sales Quotation / Order Thomas goes to Sales Sales Sales Orders. He clicks the New button, to make a quotation. He enters Clarkson in the Customer eld. Now he can enter the products he will be selling. Next to Sales Order Lines, Thomas clicks the New button to enter sales order lines. He selects the Desk product and changes the quantity to 2 as specied in the screenshot Sales Order (page 14). Thomas clicks the Save & New button to add a second line. He adds 2 chairs and notices that a message is displayed saying that there is no stock. Thomas clicks the Save & Close button. Then he clicks Compute to see the total price of the quotation. He opens the Other Information tab, because he wants the sales invoice to be created from the picking. So he changes the Shipping Policy to Invoice from the Picking. To print the quotation, he clicks Quotation / Order in the Reports section at the right side of the screen.
CHAPTER 2. COMPLETE EXAMPLE: SELL, CHECK THE STOCK, MANUFACTURE AND PURCHASE 13
Price Lists In this chapter, the Public Pricelist will be used. Later on, you will learn more about creating price lists.
7. Conrm the sales order John Smith calls Thomas to tell him that he agrees with the quotation. Thomas now conrms the sales order. Sales Quotation / Order Thomas goes to Sales Sales Sales Orders. He enters Clarkson in the Customer eld and then clicks Search. Thomas clicks the sales order to open it. He clicks the Confirm Order button to make a sales order from the quotation. To print the sales order, he clicks Quotation / Order in the Reports section at the right side of the screen.
Order Conrmation When you click Confirm Order, red text will be displayed at the top of the screen depending on the parameters of the sales order. In our example, you will see two text lines, one about the quotation conversion and another one about the delivery order. You can click the second line to be directed to the delivery order. You can also open the delivery order from the History tab of the sales order.
14 CHAPTER 2. COMPLETE EXAMPLE: SELL, CHECK THE STOCK, MANUFACTURE AND PURCHASE
The goods have to be produced and delivered to the customer, but Thomas notices that the desks and chairs are not available in stock. Because the Desk was dened as a Make to order & Buy product, OpenERP will automatically create a procurement order on conrmation of a sales order, allowing you to directly generate a purchase order. The same will be done for the Leather. OpenERP has a scheduler that will run by default every day. In this case, Jason, your companys Purchaser, will run the scheduler manually. Scheduler Jason goes to Warehouse Schedulers. He clicks Compute Schedulers because he needs to purchase material and wants to check whether anything needs to be added. In the Wizard, Jason clicks Compute Schedulers to start the computation.
Procurement Exceptions Jason can also run the procurement for each product from the Warehouse Schedulers Procurement Exceptions. The procedurement exceptions menu also includes procurements that have not been scheduled yet.
9. Change the purchase request and conrm it Now OpenERP will have created procurements (in this example purchase requests) for the products that need to be supplied. Purchase Requests Jason goes to Purchases Purchase Management Request for Quotation. He notices three purchase requests for Wood y Wood Pecker. He selects these three purchase requests by clicking the checkbox in front of them, then clicks the Merge Purchase Orders action at the right to order all products in one go. He clicks the yellow pencil to open the merged purchase request in Edit mode. Now he decides to purchase some extra desks, because Luke, the Sales Manager, told him he expects more sales. To do this, he clicks the yellow pencil in front of the order line and changes the quantity to 10. He clicks the Save & Close button, then he clicks Compute to see the total price of the quotation. From the Delivery & Invoicing tab, he species that the invoice has to be created from the picking (Invoicing Control From Picking). To conrm the purchase order, he just has to click the Convert to Purchase Order button.
10. Receive the products The supplier Wood y Wood Pecker sends the goods to your company. Jason receives the goods and enters this receipt in OpenERP. CHAPTER 2. COMPLETE EXAMPLE: SELL, CHECK THE STOCK, MANUFACTURE AND PURCHASE 15
Incoming Shipments Jason goes to Warehouse Warehouse Management Incoming Shipments. He notices the incoming shipment for Wood y Wood Pecker, and clicks the green arrow to start receiving the products. He clicks the Validate button to conrm that all products have been received from the supplier. From the Incoming Shipments list view, he notices that the Delivery order for the customer is now ready to process (red text at the top of the screen), at least for the desks. He wants to check the stock of Desks and goes to Warehouse Product Products. In the Name eld, Jason types desk, then clicks Search. The real stock is 10, the virtual stock is 8, because of the conrmed sales order for two desks.
List versus Form view You can receive / deliver goods from both list and form view. You can also receive / deliver goods by product instead of by complete order.
11. Create the draft purchase invoice Because the purchase order was set to be invoiced from the picking, Jason can now create the draft invoice, which allows for easy invoicing control. Draft Purchase Invoice Jason returns to Warehouse Warehouse Management Incoming Shipments and clicks Clear. He opens the extended lters and clicks the To Invoice button. He ticks the check box in front of the incoming shipment to be invoiced and then clicks the Create Invoice action in the Reports section at the right side of the screen. He selects the Purchase Journal and clicks Create to generate the draft invoice. The screen with the supplier invoice will open. We will get back to this later.
12. Run the scheduler again 16 CHAPTER 2. COMPLETE EXAMPLE: SELL, CHECK THE STOCK, MANUFACTURE AND PURCHASE
To tell the system that the procurements have been received and that the raw materials are now in stock, so that the production order can be generated, Jason has to run the scheduler again. Scheduler Jason goes to Warehouse Schedulers. He clicks Compute Schedulers. In the Wizard, Jason clicks Compute Schedulers to start the computation.
Just in Time You can also install the mrp_jit (Just in Time) so that this is computed in real time. In a production environment, however, you would typically have the scheduler run.
13. Start manufacturing Jason checks his list of manufacturing orders which are ready to produce. He notices the leather operator chair and decides to start manufacturing it. Manufacturing or Production Orders Jason goes to Manufacturing Manufacturing Manufacturing Orders and selects the order to start producing the chairs. He opens it by clicking the yellow pencil, then clicks the Start Production button. He notices the products to be consumed. He assembles the frame and the leather for both chairs. When he has nished, he clicks the Produce button. He keeps the default settings and clicks Confirm, then Cancel to close the window. He clicks the Save button to see the changes.
14. Deliver the goods to the customer and create draft sales invoice The Chairs are now also available in stock and the complete order can be delivered to the customer. In the warehouse, they check the open delivery orders. Delivery Randy from the warehouse goes to Warehouse Warehouse Management Delivery Orders to check the goods ready for delivery. He clicks the yellow pencil to open the delivery order. He clicks the Process button to deliver the 2 desks and chairs, then he clicks Validate.
15. Create the sales invoice CHAPTER 2. COMPLETE EXAMPLE: SELL, CHECK THE STOCK, MANUFACTURE AND PURCHASE 17
Thomas now checks whether the goods have been delivered to his customer. He can check this from the sales order, or he can tell from the status of the delivery order. Creating a Sales Invoice To create the draft sales invoice, Thomas has several possibilities. He opens Sales Invoicing Deliveries to Invoice and selects the corresponding delivery for invoicing by ticking the check box and clicking the Create Invoice action in the Reports section at the right of the screen. He goes to Warehouse Warehouse Management Delivery Orders, and clicks the Create Invoice button. He goes to the list of sales orders, and opens the sales order concerned. Thomas clicks the History tab, clicks the picking list and then the Create Invoice button. He selects the Sales Journal and clicks the Create button. The draft invoice is now displayed in list view. Thomas opens the invoice and clicks the Validate button. To print the invoice, he clicks the Print Invoice button, or the Invoices action in the Reports section at the right of the screen. The printed invoice will automatically be added as pdf document to Attachments.
16. Conrm the purchase invoice Robin, the accountant, now receives the invoice from his supplier. He can do the invoicing control according to the picking directly from the Purchase Invoices screen. Invoice Control Robin goes to Accounting Suppliers Supplier Invoices and opens the Wood y Wood Pecker invoice. Robin veries whether the invoice from the supplier matches this draft invoice created from the picking order. The invoice indeed matches and he clicks the Approve button to conrm the invoice and assign a document number to it.
Purchaser The purchaser can also do the invoice matching from Purchases Invoice Control Supplier Invoices to Receive.
Below you nd a graphical representation of the sales ow we explained before; the part from quotation to invoice. This view is available in OpenERP. You can open this Process view by clicking the question mark next to the Sales Order title. 18 CHAPTER 2. COMPLETE EXAMPLE: SELL, CHECK THE STOCK, MANUFACTURE AND PURCHASE
CHAPTER 2. COMPLETE EXAMPLE: SELL, CHECK THE STOCK, MANUFACTURE AND PURCHASE 19
20 CHAPTER 2. COMPLETE EXAMPLE: SELL, CHECK THE STOCK, MANUFACTURE AND PURCHASE
A database loaded with demonstration data is very useful to understand OpenERPs general capabilities. But to explore OpenERP through a lens of your own companys needs, you should start with an empty database. You will work in this chapter on a minimal database containing no demonstration data, so that there is no confusion about what you created. You will keep the database you have created, to allow you to build on it throughout the rest of this book if you want to. You will develop a real case through the following phases: 1. Specify a real case; 2. Describe the functional needs; 3. Congure the system with the essential modules; 4. Carry out the necessary data loading; 5. Test the system with your database. The case is deliberately simple to provide you with a foundation for the more complex situations you might have to handle in your company. Throughout this chapter, we assume that you access OpenERP through its web interface. And it is also assumed (as in the rest of this book) that you are using the latest download of OpenERP version 6, the stable production version at the time of writing (not the trunk version, which is likely to have new and potentially unstable features).
22
Press Create to start creating the database. OpenERP suggests that you congure your database using a series of questions. In the software, these series of questions are managed through so-called Configuration Wizards. Click the Start Configuration button to continue. The next conguration wizard will help you to decide what your user interface will look like, whether the screens will only show the most important elds - Simplified - or whether you also want to see the elds for the more advanced users, the Extended view. Select Extended and click Next to continue. User Preferences You can easily switch from Simplied to Extended view by changing your User Preferences.
In the next wizard, you can ll your company data, select your companys base currency and add your company logo which can be printed on reports. Fill out the required data and click Next to continue. Select the Warehouse Management, Purchase Management, Sales Management, Manufacturing and Accounting & Finance business applications for installation and click Install. Now OpenERP will start to install these ve applications, allowing you to do a complete cycle, from sales / warehouse / purchase / manufacturing to invoice. You will have to wait for the next conguration wizard to be displayed (Loading will appear).
Recongure Keep in mind that you can change or recongure the system any time, for instance through the Recongure option in the main bar.
When you choose a business application for installation, OpenERP will automatically propose to add or congure related (smaller) applications to enrich your system. When you install Sales, OpenERP will also ask you whether you want to install Invoicing Journals for instance. CHAPTER 3. LETS GET STARTED AND CONFIGURE A NEW INSTANCE 23
Skip the step that asks you to congure your Accounting Chart, because you will learn how to create accounts. In the Purchases Application Conguration screen, simply click Configure to continue the database creation. The following wizards will appear: Congure your Sales Management application: click Configure to accept the default settings (no options checked). Congure your MRP Application Conguration application: click Configure to accept the default settings. Congure your Accounting application: click Configure to accept the default settings. Congure Sales Order Logistics: click Next to accept the default settings. OpenERPs menu will be displayed, because your system is now ready for actual conguration. Setup Wizard You will have to go through the Setup wizard in steps. You have two options: 1. If you click the Start Conguration button, OpenERP guides you through a series of steps to: Congure Your Interface - proceed with Simplified (the other option is Extended); and Congure Your Company Information - enter a Company Name and select a Currency for your company. Then OpenERP helps you to install various applications with different functionality through wizards. OR 2. When you click the button Skip Conguration Wizards, you can have the screen as shown in screenshot Starting the minimal database (page 25). Then you can start working with this minimal database (we will not use this option here).
24
25
Figure 3.3: Database with all Required Functionality for this Example
Examples Of course, we will provide examples for you to congure your database, such as customers and suppliers. Make sure to use your own data instead.
Table 3.1: Dening Account Types Acc. Type Name View Income Expense Cash Receivable Payable Code view income expense cash receiv pay P&L / BS Category / Prot & Loss (Income Accounts) Prot & Loss (Expense Accounts) Balance Sheet (Assets Accounts) Balance Sheet (Assets Accounts) Balance Sheet (Liability Accounts) Deferral Method None None None Balance Unreconciled Unreconciled
26
Figure 3.4: New Account Type Accounts To create accounts, go to Accounting Conguration Financial Accounting Accounts Accounts and click the New button. You need accounts to keep track of your customers and suppliers, two more to sell and buy goods, and one for the payment and receipt of funds. And also one organizing account that is just a view of the other ve. So basically you will need at least the following six accounts, one of which is shown in New Account (page 28). Click Save to conrm each account. Chart of Accounts Structure When you create a chart of accounts, you should always start with the main view account to dene the chart, as shown in the table (Minimal Chart). This will allow you to easily link new accounts to the correct chart directly.
Table 3.2: Dening Accounts Name Minimal Chart Payable Receivable Bank Purchases Sales Code 0 AP AR B P S Parent 0 Minimal Chart 0 Minimal Chart 0 Minimal Chart 0 Minimal Chart 0 Minimal Chart Internal Type View Payable Receivable Liquidity Regular Regular Account Type View Payable Receivable Cash Expense Income Reconcile unchecked checked checked unchecked unchecked unchecked
The Account Type entry is taken from the list of types that you just created. Although it looks a bit like a text box, it does not behave in quite the same way. A single Del or Backspace keystroke is all you need to delete the whole text, and when you type the name (or part of the name), you still need to
27
Figure 3.5: New Account associate that text with the entry by clicking the Tab or Enter key to conrm your selection. You can also use the Search icon to open a list of available account types. Properties You now dene some default properties, so that you do not have to think about which account is used for a certain transaction every time you do something. The main new properties are the four that associate accounts payable and receivable to partners, and expenses and income to product categories. Create properties using Administration Conguration Parameters Conguration Parameters and then clicking the New button. This menu is only available in Extended view.
28
Selecting the correct eld When you have several elds with the same name, make sure to select the eld for which the Field Name corresponds to the property name you are dening. Note that you can also duplicate properties and then change the required elds.
Table 3.3: Dening Properties Name property_account_payable property_account_receivable property_account_expense_categ property_account_income_categ Field Account Payable Account Receivable Expense Account Income Account Type Many2One Many2One Many2One Many2One Value (account.account) AP Payable (account.account) AR Receivable (account.account) P Purchases (account.account) S Sales
To check the result of your conguration, you can go to Accounting Customers Customers and open the form containing your company data. On the Accounting tab, you will notice that both the default account receivable and account payable have been lled. Mistakes in conguring accounts and properties It is easy to make mistakes in conguring accounts and their properties, but the consequences are not immediately obvious. You will mostly discover mistakes when trying to make a Purchase or Sales Order (see later, for example, Driving your Purchases (page 49)), where the accounts are required elds or, if you are diligent, when you set up Partners. If you congure them correctly at this stage, then elds will be completed automatically and you will never know a thing. If you do not congure all this correctly, then you will not be able to save the order form until you have corrected the problem or until you manually set the accounts. Since this conguration is quite tedious, you would do best by nding a certied Chart of Accounts that has already been set up to meet your needs, and adapt the predened chart if necessary.
29
Default Values Notice that when you select the journal type, the Display Mode will already be preset. An entry sequence for the journal will be created automatically when you save the journal. The default debit and credit account will be used as a counterpart when encoding manual journal entries. Debit and credit accounts are mandatory for bank journals.
Table 3.4: Dening Journals Journal Name Purchase Journal Sales Journal Bank Journal Code Type PUJ SAJ Purchase Sale Display Mode Sale/Purchase Journal View Sale/Purchase Journal View Bank/Cash Journal View Default Debit Account P Purchases S Sales B Bank Default Credit Account P Purchases S Sales B Bank
In this example, validating a Purchase Order creates a draft invoice (see later, again for example, Driving your Purchases (page 49)), where a journal is required. As with accounts and properties, if you congure them correctly at this stage, the elds will be completed automatically and you will never know a thing. If you do not congure all this correctly, there will be errors with the order form or corresponding draft invoice, until you have corrected the problem or until you manually set the journal.
30
Editable Form in the Web Client When toggling from the list view to the form view of an item, you can generally click its name in the list view to show a non-editable view, or the pencil icon by the left-hand edge of the line to open it in an editable view. You can toggle between editable and non-editable once you are in form view. Change the contact name to match your rst name and name. The company name and the contact name below are just an example. Name : Ambitious Plumbing Entreprises . Contact Name : George Turnbull . Before you save this, look at the partners accounting setup by clicking the Accounting tab. The elds Account Receivable and Account Payable have account values that were taken from the account properties you just created. You do not have to accept those values: you can enter any suitable account you like at this stage, although OpenERP limits the selection to accounts that make accounting sense. Back at the rst tab, General, change any other elds you like, such as the address and phone numbers, then click Save. This changes one Contact for the Partner, which is sufcient for the example. From the MAIN MENU, click Administration Companies Companies and edit the only entry there. Please note that you have to keep your own company data, but for the example we use the Ambitious Plumbing company. Company Name: AmbiPlum , Partner: should already show Ambitious Plumbing Enterprises , Report Header: Ambitious Plumbing , Report Footer 1: type your slogan, i.e. Best Plumbing Services, Great Prices , Report Footer 2: type your company details, such as bank account or Ambitious - our Registered Company Details . Figure Changing Company Details (page 32) shows the effect of this. You can also change various other company-wide parameters for reports and scheduling in the other tabs, and you can upload a company logo of a specic size for the reports. Click Save to store the changes. You can leave the currency at its default setting of EUR for this example. Or you can change it in this Company and the two default Pricelists (Sales Conguration Pricelists Pricelists) if you did not set the correct company currency in the Conguration Wizard. Currency The examples in this book are in USD and EUR. You, the reader, can use your home currency instead.
31
32
Figure 3.7: New Partner Form Figure New Partner Form (page 33) shows the result. Contact Types If you have recorded several contacts for the same partner you can specify which contact is used for various documents by specifying the Address Type. For example, the delivery address can differ from the invoice address for a partner. If the Address Types are correctly assigned, OpenERP can automatically select the appropriate address during the creation of the document an invoice is addressed to the contact that has been assigned the Address Type of Invoice, otherwise to the Default address.
For the second partner, proceed just as you did for the rst, with the following data:
33
Name : Smith and Offspring, Customer checkbox : checked, Supplier checkbox : unchecked, Contact Name : Stephen Smith, Address Type : Default, add Customers in the Categories eld, Save the form. To check your work, you can go to the menu Sales Conguration Address Book Partner Categories and click on each category in turn to see the companies in the category. Multiple Partner Categories If this partner was also a supplier, then you would add Suppliers to the categories as well, but there is no need to do so in this example. You can assign a partner to multiple categories at all levels of the hierarchy.
34
UOM UOM is an abbreviation for Unit of Measure. OpenERP manages multiple units of measure for each product: you can buy in tons and sell in kgs, for example. The conversion between each category is made automatically (so long as you have set up the conversion rate in the product form rst).
Managing Double Units of Measure The whole management of stock can be carried out with double units of measure (UOM and UOS for Unit of Sale). For example, an agro-food company can stock and sell ham by piece, but buy and value it by weight. There is no direct relationship between these two units, so a weighing operation has to be done. This functionality is crucial in the agro-food industry, and can be equally important in fabrication, chemicals and many other industries.
Now create a new product through the Warehouse or Sales menu: 1. Go to Products Products and click New. 2. Create a product type Titanium Alloy Radiator in the Name eld. 3. The Product Type eld should be assigned as Stockable Product. The elds Procurement Method, Supply method, Default Unit Of Measure, and Purchase Unit Of Measure should stay at their default values. For more information about these methods, please refer to chapter Procurement Methods Make to Stock and Make to Order (page 104). 4. Enter 57.50 into the Cost Price eld and 132.50 into the Sale Price eld. 5. Click the Search icon to the right of the Category eld to select the Radiators category. 6. Click the Accounting tab, then click Save and observe that Accounting Properties here remain empty. When product transactions occur, the Income and Expense accounts that you have just dened in the Product Category are used by the Product unless an account is specied here, directly in the product, to override that. 7. Once the product is saved, it changes to a non-editable state. If you had entered data incorrectly or left a required eld blank, an error message would pop-up, the form would have stayed editable and you would need to click from tab to tab to nd a eld colored red that would have to be correctly lled in.
Figure 3.8: Product Form OpenERP has three predened top-level location types , Physical Locations and Partner Locations that act as their names suggest, and Virtual Locations that are used by OpenERP for its own purposes. 1. From the Main Menu click Warehouse Conguration Warehouse Management Locations to reach a list view of the locations (not the tree view). 2. Click the Clear button to display a complete list of all predened locations. 3. Click the name of a location, such as Physical Locations/Ambitious Plumbing Enterprises to open a descriptive form view. Each location has a Location Type and a Parent Location that denes the hierarchical structure. While you are here you might have to change the locations name to Ambitious Plumbing Enterprises. 4. From the Main Menu click Warehouse Conguration Warehouse Management Warehouses to view a list of warehouses. There is only the one at the moment, named after your company, or in the example Ambitious Plumbing Enterprises . A Warehouse contains an input location, a stock location and an output location for sold products. You can associate a warehouse with a partner to give the warehouse an address. That does not have to be your own company (although it can be); you can easily specify another partner who may be holding stock on your behalf.
36
Location Structure Each warehouse is composed of three locations Location Input, Location Output, and Location Stock. Your available stock is given by the contents of the Location Stock and its child locations. So the Location Input can be placed as a child of the Location Stock, which means that when Location Stock is interrogated for product quantities, it also takes into account the contents of the Location Input. Location Input could be used as a goods-in QC location. The Location Output must never be placed as a child of Location Stock, since items in Location Output, which can be considered to be packed ready for customer shipment, should not be thought of as available for sales elsewhere.
37
the Code and the rst day of your nancial year as the Start of Period and the End of Period dates. Then check the Opening/Closing Period checkbox. Click Accounting Charts Charts of Accounts to open a Chart of Accounts form where you dene exactly what you want to see. Simply click Open Charts to accept the defaults and display a hierarchical structure of the accounts.
Drop (delete) a Database To delete a database, go to the web Login screen and click the Databases button. Then click the Drop button, select the database you want to delete and enter the super-administrator password. Click the Drop button to conrm that you want to delete the database.
Restore a Database To restore a database, go to the web Login screen and click the Databases button. Then click the Restore button, click the Choose File button to select the database you want to restore. Give the database a name and enter the super-administrator password. Click the Restore button to conrm that you want to install a new copy of the selected database. To restore a database, you need to have an existing copy, of course.
38
Duplicating a Database To duplicate a database, you can: 1. make a backup le on your PC from this database. 2. restore this database from the backup le on your PC, and give it a new name. This can be a useful way of making a test database from a production database. You can try out the operation of a new conguration, new modules, or just the import of new data.
A system administrator can congure OpenERP to restrict access to some of these database functions so that your security is enhanced in normal production use. This operation enables you to test the new conguration on testing so that you can be sure everything works as designed. Then if the tests are successful, you can make a new database from, perhaps called live or production, for your real work. From here on, connect to this new testing database logged in as admin if you can. If you have to make corrections, do that on YourCompany and copy it to a new testing database to continue checking it. Or you can just continue working with the YourCompany database to get through this chapter. You can recreate YourCompany quite quickly if something goes wrong and you cannot recover from it but, again, you would need to know your super-administrator password for that.
40
Save the order line and close the Order Line window by clicking the Save & Close button. You can then save the whole one-line order by clicking Save, which makes the form non-editable. It is now in a state of Request for Quotation. To approve the quotation, click Convert to Purchase Order, which corresponds to an approval from a manager or from Accounts within your own company and moves the order into Approved state. If you click the Delivery & Invoicing tab you will see the delivery Destination is your own companys Stock location and that the invoice was created from the order. It is not entirely obvious at this stage, but the invoice is in a draft state so it can be edited and, crucially, it has no accounting impact yet: it is just ready for your accounting group to activate it.
2. When the Incoming Shipments window appears, select the name of the entry in the list (IN/00001) to display the Packing List itself you would usually do a search for the supplier name or order number in a list that was larger than this then click Process to load the Process Document form. 3. Click Validate to indicate that you are receiving the whole quantity of 10 units. At this point you have accepted 10 units into your company, in a location that you have already seen. Using the menu Purchases Products Products you can nd the product Titanium Alloy Radiators with Real Stock and Virtual Stock 10. Open the product form, and click the Stock by Location link at the right side of the screen to see the Real Stock and Virtual Stock of this product in various locations. Now select the checkbox in front of the Stock and Suppliers locations. The right side menu appears. Click the Location Inventory Overview report to see the inventory valuation for each of these two locations.
41
Traceability in Double-Entry OpenERP operates a double-entry stock transfer scheme similar to double-entry accounting. Because of this you can carry out various analyses of stock levels in your warehouse, along with the corresponding levels in Partner Location at your Supplier. The double-entry system, similar to that of accounting, enables you to keep track of stock movements quite easily, and to resolve any errors that occur.
42
Accounting entries are generated automatically once the invoice is validated. You can check the entry from the Other Info tab, in the Journal Entry eld. To see the effects on your chart of accounts, go to the menu Accounting Charts Chart of Accounts, and click Open Charts at the Chart of Accounts page to see that you have a debit of 560.00 in the Purchases account and a credit of 560.00 in the Payable account. Invoice Control Should your purchase invoice have to be checked by the purchaser rst, he can go to the menu Purchases Invoice Control Supplier Invoices to Receive to check whether the invoice corresponds with the order (or the goods receipt according to the Invoice Control settings).
You can monitor the accounting impact of paying the invoice through the chart of accounts available from the menu Accounting Charts Chart of Accounts. OpenERP automatically creates accounting entries from the payment, and can reconcile the payment to the invoice. You now have a new transaction that has debited the Payable account with 560.00 and credited the Bank account. If you look in Accounting Journal Entries Journal Entries you will see both accounting transactions, one in the Purchase Journal and another one in the Bank Journal, both with the Posted state.
43
44
7. In the last tab of the order History, you can see the Picking List that has been created and you will be able to see any invoices that relate to this order when they are generated. Go to Sales Products Products to display a list of products: just the one, Titanium Alloy Radiator , currently exists in this example. Its Real Stock still shows 10.00 but its Virtual Stock now shows 4.00 to reect the new future requirement of 6 units for dispatch.
Although OpenERP has automatically been made aware that items on this order will need to be dispatched, it has not yet assigned any specic items from any location to full it. It is ready to move 6.00 Titanium Alloy Radiators from the Stock location to the Customers location, so start this process by clicking Check Availability. The Move line has now changed from the Confirmed state to the Available state. Then click the Process button to reach the Process Document window, where you click the Validate button to transfer the 6 radiators to the customer. To analyze stock movements that you have made during these operations, go to Warehouse Product Products and select the radiator by clicking the checkbox in front of it, then click the action Stock by Location which is at the right most side to see that your stocks have reduced to 4 radiators and the generic Customers location has a level of 6 radiators.
Once you conrm an invoice, OpenERP assigns it a unique number, and all of the corresponding accounting entries are generated. So open the invoice and click Validate to do that and move the invoice into an Open state with a number of SAJ/2011/0001. You can send your customer the invoice for payment at this stage. Click Print Invoice to get a PDF document that can be printed or emailed to the customer. The PDF of your invoice will automatically be added as an attachment. This gives you a permanent non-editable record of your invoice on the OpenERP system. Review your chart of accounts to check the impact of these activities on your accounting. You will see the new revenue line from the invoice.
Figure 3.11: Invoice Form Check your Chart of Accounts as before to see that you now have a healthy bank balance in the Bank account.
46
Part II
47
48
For this chapter you can continue using the database already created or you should start with a fresh database that includes demonstration data, with purchase and its dependencies installed and no particular chart of accounts congured.
49
created by OpenERP, you will nd a reference to the document that generated the request in the Origin eld.
Managing Alerts If you install the warning module, you will be able to dene alerts that appear when the purchaser enters a price request or order. You can set alerts on the product and on the supplier.
The internal reference, the date and the warehouse the products should be delivered to, are completed automatically by OpenERP, but you can change these values if needed. Next, when you select a supplier, OpenERP automatically completes the contact address for the supplier. The pricelist is also automatically completed from the pricelist in the supplier form. This should bring in all of the conditions that you have negotiated with the supplier for a given period. Supplier Selection Searching for a supplier is limited to all of the partners in the system that have the Supplier checkbox checked. If you do not nd your supplier, it might be worth checking the whole list of all partners to make sure that the supplier does not yet exist without the Supplier checkbox being checked.
Once the main body of the purchase order has been completed, you can enter the product lines. When you have selected the product, OpenERP automatically completes the other elds in the form: 50 CHAPTER 4. DRIVING YOUR PURCHASES
Figure 4.2: Purchase Order Line Product UoM, taken from the Purchase Unit of Measure eld in the product form, The Description of the product in the suppliers language, Scheduled Date, calculated from the order date and the delivery lead time for the supplier (for the given product), Unit Price, taken from the suppliers pricelist, Taxes, taken from the information on the product form and partner form, depending on the rules seen in Financial Analysis. Product Wording and Code When you enter supplier names in the product form, you can set a name and a product code for each individual supplier. If you do that, OpenERP will then use those details instead of your own internal product names for that selected supplier.
If you work with management by case, you can also set the analytic account that should be used to report all the purchase costs. The costs will then be reported at the receipt of the supplier invoice. Management by Case Analytic accounts can be very useful for all companies that manage costs by case, by site, by project or by folder. To work with several analytic axes, you should install the module purchase_analytic_plans, by selecting Purchase Analytic Plans in the Recongure wizard and clicking Congure.
51
To make sure that the analytic account is automatically selected according to the partner, the date, the products or the user, you can install the module account_analytic_default (which is installed automatically as a dependency of purchase_analytic_plans). In the Notes tab of the product line, you can enter a note that will be attached when the order conrmation or price quotation is printed. This note can be predened on the product form to automatically appear on each order for that product. For example, you can enter Do not forget to send by express delivery as specied in our contract reference 1234. Once the document has been completed, you can print it as a price estimate to send to the supplier. You can set a note for the attention of the supplier in the forms third tab.
Figure 4.3: Printing the Supplier Price Quotation Then leave the document in the Request for Quotation state. When you receive a response from the supplier, use the menu Purchases Purchase Management Requests for Quotation. Select the order and complete its details. When you want to approve the order, use the button Convert to Purchase Order. The price request then passes into the Approved state. No further changes are possible.
52
Select the document that corresponds to the item that you are receiving. Usually, the goods receipt note is found by making a search on the order reference or the supplier name. You can then conrm the receipt of the products. As described in Your Warehouse (page 71), if you receive only part of the order, OpenERP manages the remainder of that order. A second receipt note is then automatically created for the goods not received. You can cancel it if you think that you will never receive the remaining products. After receiving the goods, OpenERP will show you which orders are open and the state of their receipt and invoicing if you return to the list of orders.
Figure 4.5: List of Open Orders, and their Receipt and Invoice Status From Order : invoicing based on quantities ordered, From Picking : invoicing based on quantities received, Manual : manual invoicing. The mode of invoicing control is set in the second tab of the purchase order in the eld Invoicing Control.
54
Default Value A company generally uses a single invoicing control method for all of its invoices. So you are advised to set a default value in the Invoicing Control eld after installation.
55
Delivery Charges To manage delivery charges, install the module delivery using the Recongure wizard and selecting Delivery Costs in Sales Application Conguration section. This will automatically add delivery charges to the creation of the draft invoice as a function of the products delivered or ordered.
4.1.7 Tenders
To manage tenders, you should use the module purchase_requisition, installed via the Purchase Requisition option in the Recongure wizard. This lets you create several supplier price requests for a single supply requirement. Once the module is installed, OpenERP adds a new Purchase Requisitions menu in Purchases Purchase Management. You can then dene the new tenders.
Figure 4.7: Dening a Tender To enter data for a new tender, use the menu Purchases Purchase Management Purchase Requisitions and select New. OpenERP then opens a new blank tender form. The reference number is set by default and you can enter information about your tender in the other elds. If you want to enter a suppliers response to your tender request, add a new draft purchase order into the list on the Quotation tab of your tender document. If you want to revise a supplier price in response to negotiations, edit any appropriate purchase order that you have left in the draft state and link that to the tender. When one of the orders about a tender is conrmed, all of the other orders are automatically cancelled by OpenERP if you selected the Purchase Requisition (exclusive) type. That enables you to accept just 56 CHAPTER 4. DRIVING YOUR PURCHASES
one order for a particular tender. If you select Multiple requisitions, you can approve several purchase orders without cancelling other orders from this tender.
The Standard Price setting means that the product cost is xed manually for each product in the eld Cost Price. This is usually revalued once a year based on the average of purchase costs or manufacturing costs. You usually use standard costs to manage products where the price hardly changes over the course of the year. For example, the standard cost could be used to manage books, or the cost of bread. Those costs that can be xed for the whole year bring certain advantages: you can base the sale price on the product cost and then work with margins rather than a xed price per product,
57
accounting is simplied because there is a direct relationship between the value of stock and the number of items received. To get an automated periodic revaluation of the standard price you can use the action Update on the product form, enabling you to update prices of all the selected products. OpenERP then recalculates the price of the products as a function of the cost of raw materials and the manufacturing operations given in the routing. Average Price Working with standard prices does not lend itself well to the management of the cost price of products when the prices change a lot with the state of the market. This is the case for many commodities and energy. In this case, you would want OpenERP to automatically set the price in response to each goods receipt movement into the warehouse. The deliveries (exit from stock) have no impact on the product price. Calculating the Price At each goods receipt, the product price is recalculated using the following accounting formula: NP = (OP * QS + PP * QR) / (QS + QR), where the following notation is used: NP: New Price, OP: Old Price, QS: Quantity actually in Stock, PP: Price Paid for the quantity received, QR: Quantity Received.
If the products are managed as a weighted average, OpenERP will open a window that lets you specify the price of the product received at each goods receipt. The purchase price is, by default, set from the purchase order, but you can change the price to add the cost of delivery to the various received products, for example.
58
Once the receipt has been conrmed, the price is automatically recalculated and entered on the product form.
Figure 4.9: Analysis of Purchases over the Month by Product This analysis is carried out on supplier orders and not on invoices or the quantities actually received. To get an analysis by product, use the module product_margin. The function of this module is described in detail in the chapter about sales (only in Logistics, not in Manufacturing). To analyze the received quantities, you can use the statistical reports in Warehouse. To manage purchases by project, you should use analytic accounts. You can set an analytic account on each line of a supplier order. The analytic costs linked to this purchase will be managed by OpenERP from the goods receipt and conrmation of the supplier invoice. The hr_timesheet_invoice module lets you re-invoice the analytic costs automatically using parameters in the analytic accounts such as sale pricelist, associated partner company, and maximum amount. So you can put an invoice order with a dened invoice workow in place based on the analytic accounts. If you are working Make to Order, the workow will be: 1. Customer Order, 2. Procurement Order on supplier, 3. Receive invoice and goods from the supplier, 4. Delivery and invoicing to the customer.
59
When re-invoicing based on costs you would get the following workow: 1. Enter the customer contract conditions from the analytic accounts, 2. Purchase raw materials and write the services performed into the timesheets, 3. Receive the supplier invoice and the products, 4. Invoice these costs to the customer.
Analytic Multi-plans If you want several analysis plans, you should install the module purchase_analytic_plans. These let you split a line on a supplier purchase order into several accounts and analytic plans.
Sitting at the heart of your companys processes, analytic accounts (or cost accounts) are indispensable tools for managing your operations well. Unlike your nancial accounts, they are for more than accountants - they are for general managers and project managers, too. You need a common way of referring to each user, service, or document to integrate all your companys processes effectively. Such a common basis is provided by analytic accounts (or management accounts, or cost accounts, as they are also called) in OpenERP. Analytic accounts are often presented as a foundation for strategic enterprise decisions. But because of all the information they pull together, OpenERPs analytic accounts can be a useful management tool, at the center of most system processes. There are several reasons for this: they reect your entire management activity, unlike the general accounts, the structure of the analytic accounts is not regulated by legal obligations, so each company can adapt it to its needs. Independence from General Accounts In some software packages, analytic accounts are managed as an extension of general accounts for example, by using the two last digits of the account code to represent analytic accounts. In OpenERP, analytic accounts are linked to general accounts but are treated totally independently. So you can enter various different analytic operations that have no counterpart in the general nancial accounts.
While the structure of the general chart of accounts is imposed by law, the analytic chart of accounts is built to t a companys needs closely.
60
Just as in the general accounts, you will nd accounting entries in the different analytic accounts. Each analytic entry can be linked to a general account, or not, as you wish. Conversely, an entry in a general account can be linked to one, several, or no corresponding analytic accounts. You will discover many advantages of this independent representation below. For the more impatient, here are some of those advantages: you can manage many different analytic operations, you can modify an analytic plan on the y, during the course of an activity, because of its independence, you can avoid an explosion in the number of general accounts, even those companies that do not use OpenERPs general accounts can use the analytic accounts for management. Who Benets from Analytic Accounts? Unlike general accounts, analytic accounts in OpenERP are not so much an accounting tool for Accounts as a management tool for everyone in the company. (That is why they are also called management accounts.) The main users of analytic accounts should be the directors, general managers and project managers.
Analytic accounts make up a powerful tool that can be used in different ways. The trick is to create your own analytic structure for a chart of accounts that closely matches your companys needs.
61
Analytic Chart of Accounts for an Industrial Manufacturing Company 1. Marketing Department 2. Commercial Department 3. Administration Department 4. Production Product Range 1 Sub-groups Product Range 2
In daily use, it is useful to mark the analytic account on each purchase invoice. The analytic account is the one to which the costs of that purchase should be allocated. When the invoice is approved, it will automatically generate the entries for both the general and the corresponding analytic accounts. So, for each entry on the general accounts, there is at least one analytic entry that allocates costs to the department that incurred them. Here is a possible breakdown of some general accounting entries for the example above, allocated to various analytic accounts:
Table 4.1: Breakdown of general and analytic accounting entries (Case 1) General accounts Title Purchase of Raw Material Subcontractors Credit Note for defective materials Transport charges Staff costs Account 600 602 600 613 6201 Debit 1500 450 450 10000 Credit Analytic accounts Account Production / Range 1 Production / Range 2 Production / Range 1 Production / Range 1 Marketing Commercial Administrative Production / Range 1 Production / Range 2 Marketing Value -1 500 -450 200 -450 -2 000 -3 000 -1 000 -2 000 -2 000 -450
200
PR
614
450
The analytic representation by department enables you to investigate the costs allocated to each department in the company. So, the analytic chart of accounts shows the distribution of the companys costs using the example above:
62
Table 4.2: Analytic chart of accounts (Case 1) Account Marketing Department Commercial Department Administration Department Production Product Range 1 Product Range 2 Total -2 450 -3 000 -1 000 -6 200 -3 750 -2 450
In this example of a hierarchical structure in OpenERP, you can analyze not only the costs of each product range but also the costs of the whole of production. The balance of a summary account ( Production ) is the sum of the balances of the child accounts. A report that relates both general accounts and analytic accounts enables you to get a breakdown of costs within a given department. An analysis of the Production / Product Range 1 department is shown in this table: Table 4.3: Report merging both general and analytic accounts for a department (Case 1) Production / Product Range 1 General Account 600 Raw Materials 613 Transport charges 6201 Staff costs Total Amount - 1 300 - 450 -2 000 -3 750
The examples above are based on a breakdown of the costs of the company. Analytic allocations can be just as effective for sales. That gives you the protability (sales - costs) of different departments. Representation by Unique Product Range This analytic representation by department and by product range is usually used by trading companies and industries. A variant of this is not to break it down by sales and marketing departments but to assign each cost to its corresponding product range. This will give you an analysis of the protability of each product range. Choosing one over the other depends on how you look at your marketing effort. Is it a global cost allocated in some general way, or does each product range have responsibility for its own marketing costs?
Case 2: Law Firm Law rms generally adopt management by case, where each case represents a current client le. All of the expenses and products are then attached to a given le. CHAPTER 4. DRIVING YOUR PURCHASES 63
A principal preoccupation of law rms is the invoicing of hours worked, and the protability by case and by employee. Mechanisms used for encoding the hours worked will be covered in detail in the Human Resources chapter on line. Like most system processes, hours worked are integrated into the analytic accounting. Every time an employee enters a timesheet for a number of hours, that automatically generates analytic accounts corresponding to the cost of those hours in the case concerned. The hourly charge is a function of the employees salary. So a law rm will opt for an analytic representation which reects the management of the time that employees work on the different client cases. Example Representation of an Analytic Chart of Accounts for a Law Firm 1. Absences Paid Absences Unpaid Absences 2. Internal Projects Administrative Others 3. Client Cases Client 1 Case 1.1 Case 1.2 Client 2 Case 2.1
All expenses and sales are then attached to a case. This gives the protability of each case and, at a consolidated level, of each client. Billing for the different cases is a bit unusual. The cases do not match any entry on the general account and nor do they come from purchase or sale invoices. They are represented by the various analytic operations and do not have exact counterparts in the general accounts. They are calculated on the basis of the hourly cost per employee. These entries are automatically created on billing worksheets. At the end of the month when you pay salaries and benets, you integrate them into the general accounts but not in the analytic accounts, because they have already been accounted for in billing each account. A report that relates data from the analytic and general accounts then lets you compare the totals, so you can readjust your estimates of hourly cost per employee depending on the time actually worked. The following table gives an example of different analytic entries that you can nd for your analytic account:
64
Table 4.4: Analytic entries for the account chart (Case 2) Title Study the le (1 h) Search for information (3 h) Consultation (4 h) Service charges Stationery purchase Fuel Cost -Client trip Staff salaries Account Case 1.1 Case 1.1 Case 2.1 Case 1.1 Administrative Case 1.1 Amount -15 -45 -60 280 -42 -35 General Account Debit Credit
705 Billing services 601 Furniture purchase 613 Transports 6201 Salaries
280 42 35 3 000
You will see that it allows you to make a detailed study of the protability of different transactions. In this example, the cost of Case 1.1 is 95.00 (the sum of the analytic costs of studying the les, searching for information and service charges), but has been invoiced for 280.00, which gives you a gross prot of 185.00. But an interest in analytical accounts is not limited to a simple analysis of the protability of different cases. This same data can be used for automatic recharging of the services to the client at the end of the month. To invoice clients, just take the analytic costs in that month and apply a selling price factor to generate the invoice. Invoicing mechanisms for this are explained in greater detail in ch-services. If the client requires details of the services used on the case, you can then print the service entries in the analytic account for this case. Invoicing Analytic Costs Most software that manages billing enables you to recharge for hours worked. In OpenERP, these services are automatically represented by analytic costs. But many other OpenERP documents can also generate analytic costs, such as credit notes and purchases of goods. So when you invoice the client at the end of the month, it is possible for you to include all the analytic costs, not just the hours worked. So, for example, you can easily recharge the whole cost of your journeys to the client.
Case 3: IT Services Company Most IT service companies face the following problems: project planning, invoicing, protability and nancial follow-up of projects, managing support contracts. To deal with these problems, you would use an analytic chart of accounts structured by project and by contract. A representation of that is given in the following example:
65
Example Analytic Representation of a Chart of Accounts for an IT Services Company 1. Internal Projects Administrative and Commercial Research and Development 2. Client Projects Client 1 Project 1.1 Project 1.2 Client 2 Project 2.1 Project 2.2 3. Support Contracts 20h Customer X Customer Y
The management of services, expenditures and sales is similar to that presented above for lawyers. Invoicing and the study of protability are also similar. But now look at support contracts. These contracts are usually limited to a prepaid number of hours. Each service posted in the analytic accounts shows the remaining available hours of support. For the management of support contracts, you would use the quantities and not the amounts in the analytic entries. In OpenERP, each analytic line lists the number of units sold or used, as well as what you would usually nd there the amount in currency units (USD or GBP, or whatever other choice you make). So you can sum the quantities sold and used on each analytic account to determine whether any hours of the support contract remain. To differentiate services from other costs in the analytic account, you use the concept of the analytic journal. Analytic entries are then allocated into the different journals: service journal, expense journal, sales journal, purchase journal. So to obtain the detailed breakdown of a support contract, you only have to look at the service journal for the analytic account corresponding to the contract in question. 66 CHAPTER 4. DRIVING YOUR PURCHASES
Finally, the analytic account can be used to forecast future needs. For example, monthly planning of staff on different projects can be seen as an analytic budget limited to the service journal. Accounting entries are expressed in quantities (such as number of hours, and numbers of products), and in amounts in units of currency (USD or GBP perhaps). So you can set up planning on just the basis of quantities. Analyzing the analytic budget enables you to compare the budget (that is, your plan) to the services actually carried out by month end. Cash Budgets Problems of cash management are amongst the main difculties encountered by small growing businesses. It is really difcult to predict the amount of cash that will be available when a company is young and rapidly growing. If the company adopts management by case, then staff planning can be represented on the analytic accounts report, as you have seen. But since you know your selling price for each of the different projects, you can see that it is easy to use the plan in the analytic accounts to more precisely forecast the amounts that you will invoice in the coming months.
67
68
Part III
69
70
Your Warehouse
OpenERPs stock management is at once very simple, exible and complete. It is based on the concept of double entry that revolutionized accounting. The system can be described by Lavoisiers maxim nothing lost, everything changed or, better, everything moved. In OpenERP you do not talk of disappearance, consumption or loss of products: instead you speak only of stock moves from one place to another.
Just as in accounting, the OpenERP system manages counterparts to each of its main operations such as receipts from suppliers, deliveries to customers, prot and loss from inventory, and consumption of raw materials. Stock movements are always made from one location to another. To satisfy the need for a counterpart to each stock movement, the software supports different types of stock locations: Physical stock locations, Partner locations, Virtual locations as counterparts for procurement, production and inventory. Physical locations represent warehouses and their hierarchical structure. These are generally the locations that are managed by traditional stock management systems. Partner locations represent your customers and suppliers stocks. To reconcile them with your accounts, these stores play the role of third-party accounts. Reception from a supplier can be shown by the movement of goods from a partner location to a physical location in your own company. As you see, supplier locations usually show negative stocks and customer locations usually show positive stocks. Virtual locations as counterparts for production are used in manufacturing operations. Manufacturing is characterized by the consumption of raw materials and the production of nished products. Virtual locations are used for the counterparts of these two operations. Inventory locations are counterparts of the stock operations that represent your companys prot and loss in terms of your stocks. The gure Location Structure when OpenERP has just been installed (page 72) shows the initial conguration of the locations when the software is installed (Warehouse Warehouse Management Locations). Hierarchical Stock Locations In OpenERP, locations are structured hierarchically. You can structure your locations as a tree, dependent on a parent-child relationship. This gives you more detailed levels of analysis of your stock operations and the organization of your warehouses.
71
Figure 5.1: Location Structure when OpenERP has just been installed
Locations and Warehouses In OpenERP a Warehouse represents the place where your physical stock is stored. A warehouse can be structured into several locations at multiple levels. Locations are used to manage all types of storage places, such as at the customer and production counterparts.
For this chapter you can continue using the database with demo data from a previous chapter or start with a fresh database that includes demo data, with Warehouse Management and its dependencies installed and any chart of accounts congured. In this chapter, the following modules will be used:
72
Table 5.1: List of modules Name stock stock_planning stock_location delivery account_anglo_saxon Description to handle the stock functions to dene planning on products to dene pull and push ows to dene delivery methods and costs to illustrate the valuation according to the anglo-saxon principles sale_journal to handle stock by journal mrp_jit to illustrate the just-in-time functionality sale_supplier_direct_delivery directly deliver the product from the supplier to the to customer
Table 5.2: Stock Move Operation from Suppliers to Stock Location Partner Locations > Suppliers Physical Locations > OpenERP S.A. > Stock Products -30 bicycles +30 bicycles
If you deliver 2 bicycles to a European customer, you will get the following transactions for the delivery:
Table 5.3: Stock Move Operation from Stock to European Customers Location Physical Locations > OpenERP S.A. > Stock Partner Locations > Customers > European Customers Products -2 bicycles +2 bicycles 73
When the two operations are complete, you will see the following stock in each location:
Table 5.4: Resulting Stock Situation Location Partner Locations > Suppliers Physical Locations > OpenERP S.A. > Stock Partner Locations > Customers > European Customers Products -30 bicycles +28 bicycles +2 bicycles
So you can see that the sum of the stocks of a product in all the locations in OpenERP is always zero. In accounting you would say that the sum of the debits is equal to the sum of the credits. Partner locations (customers and suppliers) are not located under your company in the hierarchical structure, so their contents are not considered as part of your own stock. So if you just look at the physical locations inside your own company, those two bicycles are no longer in your company. Although they are no longer in your own physical stock, it is still very useful to see them in your customers stock, because that will help when you carry out detailed stock management analysis. Consignment Stock To manage Consignment Stock, you need to dene the location for the consignment customer or supplier as part of your own stock and not as a partner location.
Accounts In managing stock, a gap between the data in the software and real quantities in stock is difcult to avoid. Double-entry stock management gives twice as many opportunities to nd an error. If you forget two items of stock, this error will automatically be reected in the counterparts location.
You can make a comparison with accounting, where you will easily nd an error because you can look for an anomaly in an account or in the counterparts: if there is not enough in a bank account then that is probably because someone has forgotten to enter a customers invoice payment. You always know that the sum of debits must equal the sum of the credits in both accounting and OpenERPs stock management. In accounting, all documents lead to accounting entries that form the basis of management accounting. If you create invoices or enter statements of account, for example, the results of the operations are accounting entries on accounts. And it is the same for stock management in OpenERP. All stock operations are carried out as simple stock moves. Whether you pack items, or manufacture them, or carry out a stock inventory operation, stock moves are carried out every time. You have seen a fairly simple example of goods receipt and product delivery, but some operations are less obvious a stock inventory operation, for example. An inventory operation is carried out when you compare the stock shown in software with real stock numbers counted in the stores. In OpenERP, with its double-entry stock management, you would use stock moves for this inventory operation. That helps 74 CHAPTER 5. YOUR WAREHOUSE
you manage your stock traceability. Suppose there are 26 bicycles in real stock, but OpenERP shows 28 in the system. You then have to reduce the number in OpenERP to 26. This reduction of 2 units is considered as a loss or destruction of products and the correction is carried out as in the following operation:
Table 5.5: Inventory Operation to Adjust Stock Location Physical Locations > OpenERP S.A. > Stock Virtual Locations > Inventory Loss The product stock under consideration then becomes: Products -2 bicycles +2 bicycles
Table 5.6: Real and Counterpart Stocks when Operations are Completed Location Partner Locations > Suppliers Physical Locations > OpenERP S.A. > Stock Partner Locations > Customers > European Customers Virtual Locations > Inventory Loss Products -30 bicycles +26 bicycles +2 bicycles +2 bicycles
This example shows one of the great advantages of this approach in terms of performance analysis. After a few months, you can just make a stock valuation of the location Inventory Control Location Structure Virtual Locations Inventory Loss to give you the value of the companys stock losses in the given period. Now see how the following manufacturing operation is structured in OpenERP. To make a bicycle you need two wheels and a frame. This means that there should be a reduction of two wheels and a frame from real stock and the addition of a bicycle there. The consumption / production is formalized by moving products out of and into physical stock. The stock operations for this are as follows:
Table 5.7: Stock Situation Resulting from Manufacturing Location Physical Locations > OpenERP S.A. > Stock Virtual Locations > Production Physical Locations > OpenERP S.A. > Stock Virtual Locations > Production Virtual Locations > Production Physical Locations > OpenERP S.A. > Stock Products -2 Wheels +2 Wheels -1 Frame +1 Frame -1 Bicycle +1 Bicycle Step Consumption of raw materials Consumption of raw materials Consumption of raw materials Consumption of raw materials Manufacture of nished products Manufacture of nished products
So now you have got the outcome you need from the consumption of raw materials and the manufacturing of nished products.
75
Assessing Created Value You might already have noticed a useful effect of this approach: if you do a stock valuation in the Virtual Locations > Production location you get a statement of value created by your company (as a negative amount). Stock valuation in any given location is calculated by multiplying quantities of products in stock by their cost. In this case, the raw material value is deducted from the nished product value.
76
You can also set an address for the warehouse. This address should ideally be an address of your company. Once the warehouse has been dened, it can be used in: Minimum stock rules, Supplier orders, Customer orders (using the denition of a point of sale, which is linked to a warehouse). Automatic Procurement Several methods of automatically procuring products can be carried out by OpenERP: the workow used by products that have the procurement method Make to Order, using minimum stock rules for Make to Stock products, using the master production schedule for Make to Stock products. The last two methods are described below. Minimum Stock Rules To automatically make stock replenishment proposals, you can use minimum stock rules. Go to the menu Warehouse Automatic Procurements Minimum Stock Rules. The rule is the following: if the virtual stock for the given location is lower than the minimum stock indicated in the rule, the system will automatically propose a procurement to increase the level of virtual stock to the maximum level given in the rule.
77
Conict Resolution You may nd draft production or procurement orders to be created although they should not exist. That can happen if the system is badly congured (for example, if you have forgotten to set the supplier on a product). To check this, look at the list of procurements in the exception state in the menu Warehouse Schedulers Procurement Exceptions. More details about processing these exceptions is given in ch-mnf.
We underline that the rule is based on virtual quantities and not just on real quantities. It takes into account the calculation of orders and receipts to come. Take the following example: Products in stock: 15 Products ordered but not delivered: 5 Products in manufacturing: 2 The rules dened are: Minimum stock: 13 Maximum stock: 25. Once the rules have been properly congured, the purchasing manager only needs to look at the list of orders for conrmation with the supplier using the menu Purchases Purchase Management Requests for Quotation. Procurement Note that the procurement does not require that you buy from a supplier. If the product has a Supply Method Produce, the scheduler will generate a Manufacturing order instead of a supplier order.
You can also set multiple quantities in the minimum stock rules. If you set a multiple quantity of 3 the system will propose procurement of 15 pieces, and not the 13 it really needs. In this case, it automatically rounds the quantity upwards.
78
Maximum Quantity Pay attention to the fact that the maximum quantity is not the maximum you will have in stock. If we take the following situation: a company has 10 pieces of product with minimum stock rules dened for this product by Min quantity = 10, Max quantity = 30 and Qty multiple = 12. If an order of 2 pieces comes, a purchase of 24 pieces order will be executed. The rst 12 pieces will be ordered to reach the minimum quantity and the other 12 to reach the maximum quantity. At the end, the stock of this product will be equal to 32 pieces.
In a minimum stock rule, when you indicate a warehouse, it suggests a stock location by default in that warehouse. You can change that default location when the scheduler completes.
5.2.2 Location
A location is one component of the warehouses that is used to managed all types of storage places, such as at the customers and production counterparts. There are different types of locations that allow you to structure your warehouses according to your needs. Locations are structured hierarchically to account for the subdivision of a warehouse into sections, aisles, and/or cupboards. The hierarchical view also enables you to structure virtual locations such as production counterparts. That gives you a ner level of analysis. Go to the menu Warehouse Conguration Warehouse Management Locations, then click New to dene new locations.
Figure 5.4: Dening a new Stock Location Here are the different available types of locations: Supplier Location: virtual location representing the source location for products received CHAPTER 5. YOUR WAREHOUSE 79
from suppliers, View: shows that the location is only an organizational node for the hierarchical structure, and cannot be involved in stock moves itself. The view type is not made into a leaf node in a structure it usually has children. Internal Location: physical location inside your own stock, Customer Location: virtual location representing the destination for products sent to customers, Inventory: virtual location serving as the counterpart for inventory operations used to correct stock levels (physical inventories), Procurement: virtual location serving as temporary counterpart for procurement operations when you do not yet know the source (supplier or production). Products in this location should be zero after the scheduler run completes, Production: virtual counterpart location for production operations; consuming raw material and sending nished products, Transit Location for Inter-Companies Transfers: used as an intermediate location in a multi-company environment. You can have several locations of the same type. In that case, your product, supplier and warehouse congurations determine the location that is to be used for any given operation. Location Addresses Each location can have a specic address that enables you to create a location for a customer or a supplier, for example. You can then give it the address of that customer or supplier. Go to the partner form to tell OpenERP it should use this location rather than the default location given to partner deliveries. Subcontracting Production You will see in the on line chapter Manufacturing that it is possible to assign a location to a manufacturing workcenter. If this location is at a suppliers, you must give it an address so that OpenERP can prepare a delivery order for the supplier and a receive operation for the manufactured goods. Creating a location specically for a partner is also a simple solution for handling consigned stocks in OpenERP.
80
Consigned Stock Consigned stock is stock that is owned by you (valued in your accounts), but is physically stocked by your supplier. Or, conversely, it could be stock owned by your customer (not valued by you), but stocked in your company. Make sure that you create consignment locations as part of your internal stock.
To enable you to easily consolidate at a higher level, the location denition is hierarchical. This structure is given by the eld Parent Location. That also enables you to manage complex cases of product localization. For example, you could imagine the following scenario: One Company with Two Warehouses A company has a warehouse in Paris and in Bordeaux. For some orders, you have to deliver the products from Paris, and for others from Bordeaux. But you should also specify a ctitious warehouse that OpenERP uses to calculate whether it should deliver products from Paris or from Bordeaux. To do this in OpenERP, you would create a third warehouse France which consolidates the warehouses in Paris and Bordeaux. You create the following physical locations: Company Output * Warehouses France Warehouse Paris Warehouse Bordeaux OpenERP will then deliver the goods from the warehouse that has the ordered product in stock. When products are available in several warehouses, OpenERP will select the nearest warehouse. To formalize the notion of distance between warehouses you should use the geographic co-ordinates (X, Y, Z) of the different stores to enable OpenERP to search for the nearest goods. The same co-ordinates could also be used to structure the shelves, aisles and interior rooms in a warehouse. Linked Locations Locations in OpenERP can be linked between each other to dene paths followed by products. So you can dene rules such as: all products that enter the warehouse should automatically be sent to quality control. The warehouse and quality control are represented by two different locations. Then when a product arrives in a location, OpenERP can automatically suggest that you send the product to another linked location. Three link modes are available: Manual Operation, Automatic Move, Automatic No Step Added.
81
The Manual Operation mode will create an internal move order to the linked location once products arrive in the source locations. This order will wait for a conrmation of the move by a user. This enables you to have a list of moves to do, proposed by the system and conrmed by the storesperson. The Automatic Move mode will do the same, but will not wait for a conrmation from the user. Products will automatically be sent to the linked location without any intervening manual operation to do. This corresponds to the case where, for simplicity, you delete a step in the process so the end user can set off the process automatically. The Automatic No Step Added mode will not include the additional stock move, but will change the destination move transparently to assign the linked location. You could then assign a destination location to which you send all the products that arrive in your warehouse. The storesperson will modify the goods receipt note. Product Logistics The module stock_location lets you generate paths to follow, not just at the level of locations, but also at the level of products. It then enables you to manage default locations for a given product or to refer to the products as a function of operations such as quality control, supplier receipt, and after-sales service. A more detailed explanation of this module, with examples, is given at the end of this chapter.
If there is linking to do, the Chained Location Type eld allows you to determine the destination location. If the eld is set to Customer, the location is given by the properties of the partner form. If the eld is set to xed, the destination location is given by the eld Chained Location If Fixed. Some operations take a certain time between order and execution. To account for this lead time, you can set a value in days in the eld Chaining Lead Time. Then the extra move (automatic or not) will be carried out several days after the original move. If you use the mode Automatic No Step Added, the lead time is inserted directly into the initial order. In this way, you can add security lead times at certain control points in the warehouse. Structuring Locations In the next part, you will see that by linking locations you can manage a whole series of complex cases for efcient production management: Handling multiple operations for a customer order, Tracking import and export by sea transport, Managing a production chain in detail, Managing rented products, Managing consigned products.
82
To show these concepts, different cases of structuring and conguring these locations are given below. Many other congurations are possible according to company needs. Examples: Handling customer orders Customer orders are usually handled in one of two ways: item note (or preparation order), conrmed when the item is ready to send, delivery order (or freight note), conrmed when the transporter has delivered the item to a customer. You use the following stock move in OpenERP to simulate these operations: Packing Note: Stock > Output, Delivery Order: Output > Customer. The rst operation is automatically generated by the customer order. The second one is generated by the stock management, showing that the Output location is linked to the Customer location. The two operations will be displayed in Waiting status. If the Output location is not situated beneath the stock location, you then have to move the item from stock to the place where the item is prepared. Some companies do not want to work in two steps, because it just seems like extra work to have to conrm a delivery note in the system. You can then set the link mode to Automatic to make OpenERP automatically conrm the second step. It is then assumed all the items have automatically been delivered to the customer. Linked production The stock_location module enables you to manage the linkages by product in addition to doing that by location. You can then create a location structure that represents your production chain by product. The location structure may look like this: Stock Level 1 Level 2 * Link 1 Operation 1 Operation 2 Operation 3 Operation 4 You can then set the locations a product or a routing must go through in the relevant form. All products that enter the production chain will automatically follow the predetermined path. You can see the location structure using Warehouse Inventory Control Location Structure. CHAPTER 5. YOUR WAREHOUSE 83
5.2.3 Shop
The counterparts for procurement, inventory and production operations are given by the locations shown in the product form. The counterparts of reception and delivery operations are given by the locations shown in the partner form. The choice of stock location is determined by the conguration of the warehouse, linked to a Shop, which can be dened using Sales Conguration Sales Shop. Once a shop is dened, you will be able to make sales orders from this shop. You need at least one shop in order to be able to make sales orders.
5.2.4 Stock
In the Product form, the Stock by Location action will give you the stock levels of the various products in any selected location. If you have not selected any location, OpenERP calculates stocks for all of the physical locations. When you are in the Stock by Location view, click the Print button to print the Location Content or the Location Inventory Overview reports. Availability of Stock Depending on whether you look at the product from a customer order, or from the menu of a product form, you can get different values for stock availability. If you use the Product menu, you get the stock in all of the physical stock locations. Looking at the product from the order you will only see the report of the warehouse selected in the order.
In this respect, two important elds in the product form are: Real Stock: Quantity physically present in your warehouse, Virtual Stock: Calculated as follows: real stock outgoing + incoming. Virtual Stock Virtual stock is very useful because it shows what the salespeople can sell. If the virtual stock is higher than the real stock, this means products will be coming in. If virtual stock is smaller than real stock, certain products are reserved for other sales orders or work orders.
Detail of Future Stock To get more details about future stock, you can click Stock Level Forecast to the right of the product form to get the report Forecast Stock Levels as illustrated below. OpenERP shows a graph of the changes in stock in the days to come, varying as a function of purchase orders, conrmed production and sales orders.
84
Filter Stock by Location By default, in Product list view, the columns Real Stock and Virtual Stock show the stock gures for all stock locations where a product is stored. Use the Extended Filters to enter a specic stock location, if you want to only see the stock in a specic location.
Lead Times and Locations The tab Procurement & Locations in the Product form contains information about different lead times and locations. Three lead time gures are available: Customer Lead Time: lead time promised to the customer, expressed in number of days between the order and the delivery to the customer, Manufacturing Lead Time: lead time, in days, between a production order and the end of production of the nished product, Warranty (months): length of time in months for the warranty of the delivered products. Warranty The warranty period is used in the Repairs management and after-sales service. You can nd more information on this subject in the on line chapter about Manufacturing.
85
Fields in the section Storage Localisation are for information only; they do not have any impact on the management of stock. Counter-Part Locations Properties are automatically proposed by the system, but the different values can be modied. You will nd counterpart locations for: Procurement, Production, Inventory. A procurement location is a temporary location for stock moves that have not yet been nalized by the scheduler. When the system does not yet know if procurement is to be done by a purchase or production, OpenERP uses the counterpart location Procurement. In this location, you will nd everything that has not yet been planned by the system. The quantities of product in this location cancel each other out. Initial Inventory Once a product has been dened, use an initial inventory operation to put current quantities into the system by location for the products in stock. Go to the menu Warehouse Inventory Control Physical Inventories to do your initial inventory.
86
Give a name (for example Initial Inventory or Lost Product XYZ ) and a date (proposed by default) for each inventory operation. You have three ways of doing an inventory. Click the Import Inventory action and select the location concerned. You can choose to include child locations and set the inventory to zero (especially useful to ensure the count is done correctly). You can update the inventory from the Product form. Go to the Information tab, Stocks section, and click the Update button. On conrmation, OpenERP will create a Physical Inventory. You can manually add inventory lines. You can then enter data about the quantities available for each product by location. Start by entering the location, for example Stock , and then select the product. OpenERP automatically completes the quantity available for that product in the location shown. You can then change that value to correct the value in stock. Enter data for a single line in your inventory: Location : Stock, Product : PC1 Basic PC, Quantity : 23 Units. When your inventory operation is nished, you can conrm it using the Conrm Inventory button to the bottom right of the form. OpenERP will then automatically create the stock moves to close the gaps, as mentioned at the start of this chapter. You can verify the moves generated using the Posted Inventory tab of the inventory operation form. The correct levels of your product are now in your stock locations. A simple way of verifying this is to reopen the product form to see the quantities available in stock. Periodical Inventory You are usually legally required to do a stock check of all your products at least once a year. As well as doing a complete annual stock check, OpenERP also supports the method of periodical inventory. That means you can check the stock levels of a proportion of your products every so often. This system is accepted in France as long as you can guarantee that all of your products have been counted at least once per year. To see the last inventory count per product, use the report Warehouse Reporting Last Product Inventories. You can do this the same way for all products and all locations, so you only carry out small inventory operations through the year, rather than a single large stock check at one point in the year (which usually turns out to be at an inconvenient time).
87
Figure 5.7: Manual Data Entry for Product Receipt The second method is to receive products from a generated incoming shipment. To achieve the reception using this method, you have to go to Incoming Shipments section in the Warehouse Management submenu. You will nd the list of waiting incoming shipments. The third method is to receive products by waiting products without looking at the shipment document. You can validate the reception by products in Receive Products section in the :guilabel: Product Moves submenu. With this method, you will be able to receive one product, regardless of the document which is attached to this product. Receipt of a Supplier Order by Purchase Order If you use Purchase Orders in OpenERP, product receipts are automatically generated by the system when the purchase order is conrmed. You do not have to enter any date, just conrm that the quantities ordered match the quantities received. Incoming Shipments forms are automatically prepared by OpenERP from the purchase management process. You will nd a list of all the awaited receipts in the menu Warehouse Warehouse Management Incoming Shipments. Use the order number or the supplier name to nd the right goods receipt form for conrmation of a goods-in. This approach enables you to control quantities
88
Figure 5.8: List of Items Waiting You can also do goods-in data entry manually if there is no order, using the same menu by clicking the New button. A new goods-in data entry form opens. Enter the supplier data in the Address eld and type the reference number from your supplier in the eld Origin. You should then enter data about the products received in the lines. The source location is already completed by default because of your supplier selection. You should then give the destination location where you will place the products. For example, enter Stock. At this stage, you can set a lot number for traceability (this function will be described later in this chapter, so leave this eld empty for the moment). Once the form has been completed, you can conrm the receipt of all the products at the same time using the Process Now button. If you want to enter data for a goods receipt that you are still waiting for, click the button Process Later.
89
Partial or Complete Reception When you process the incoming shipment, you can choose between partial or complete. If you have to validate a partial incoming shipment, click Process now and change the number of items according to the quantity received.
Figure 5.9: Conrm partial reception Another object will be generated with a back order reference equal to the Reference number of the incoming shipment already conrmed.
Figure 5.10: Process a Partial Incoming Shipment Once the rest of the order has arrived and has been processed, both orders will be merged.
Figure 5.11: Form for Entering Goods received from a Supplier Order The products then arrive in stock and should reect the quantities shown on the product form. In the Incoming Shipments form, the eld Invoice Control lets you inuence the way you send invoices to suppliers. If this is set to To be invoiced, a supplier invoice will now be generated 90 CHAPTER 5. YOUR WAREHOUSE
automatically in the draft state, based on the goods received. Your accountant then has to conrm this pre-invoicing once the suppliers invoice is received. This enables you to verify that the invoiced quantities correspond to the quantities received. Print the Packing List In order to print the packing list of an incoming shipment, select the incoming shipment of which you need the details and click Packing List in the panel at the right side of the screen. This link is available in the Internal Moves and Delivery Orders sections.
In case you received damaged or wrong products, you can return them to the supplier. In the Incoming shipment form, click the Return Products button. A window will open that lets you choose the invoicing process to follow. Once you click Process, a stock move is generated with the same reference number and return to specify that this is a return move.
Receipt of a Supplier Order by Product The approach shown above is very useful if goods receipts correspond to the original orders. If your suppliers deliver items that do not necessarily coincide with the orders, however, it is easier to work by products received rather than by orders. From this version on, you can also handle receptions by product, even from List view. Go to Warehouse Products Moves Receive Products. Filters allow you to easily select receipts to be done, and so on. One way to quickly receive products is to Group by Supplier and select To Do. This is very useful functionality when your supplier sends the goods for several purchase orders at a time. You can now just receive the products, regardless of the purchase order they come from, simply by clicking the green arrow at the right side of the screen. The List view offers great exibility and allows you to rapidly receive products by keeping full functionality! Of course, you can handle both partial and complete receptions, and you can add information about the production lots and packs. This can be also accomplished from Form view.
91
Figure 5.14: Managing the Paths from one Location to Another in a Product Form This will let you congure logistics rules individually for each product. For example, when a specic product arrives in stores, it can automatically be sent to quality control. In this case, it has to be congured as a Push Flow with rules in the Product form. The elds that make up those rules are: Source Location: the rule only applies if a product comes from this location, Destination Location: the rule only applies if a product ends up in this location, 92 CHAPTER 5. YOUR WAREHOUSE
Automatic Move: Automatic Move, Manual Operation, Automatic No Step Added, Delay (days), Operation: a free text eld which will be included in the automatic stock move proposed by OpenERP. There are two main logistic ows: Pushed Flows Pulled Flows Push ows are useful when the arrival of certain products in a given location should always be followed by a corresponding move to another location, optionally after a certain delay. The original Warehouse application already supports such Push ow specications on the Locations themselves, but these cannot be rened per product. Pull ows are a bit different from Push ows, in the sense that they are not related to the processing of product moves, but rather to the processing of procurement orders. What is being pulled is a need, not directly products. You will now see some examples of using these locations and logistics by product through Pushed Flows for: A rentable product, A product bought in China, following its freight by ship from port to port, A product that you want to send to quality control before putting it in stocks. We will develop the third scenario: the quality control. You can congure the system to put a given product in the Quality Control bay automatically when it arrives in your company. To do that, you just congure a rule for the product to be placed in the Quality Control location rather than the Input location when the product is received from the supplier.
Table 5.8: Rule to Move Products manually from Input to Quality Control Field Source location Destination location Automatic Move Shipping Type Delay (days) Operation Value Stock Quality Control Manual Operation Getting Goods 0 Quality Control
Once this product has been received, OpenERP will automatically manage the request for an internal movement to send it to the Quality Control location. If you want to do this automatically without having to conrm it, in the Automatic Move eld, select Automatic Move or Automatic No Step Added.
93
Figure 5.15: Manual Stock Move to Quality Control With the conguration described in the table above, you will have to conrm the stock move manually once you have received the goods. If you do not want to conrm the stock move manually, but you want to see the move Suppliers > Stock then Stock > Quality Control, change the Automatic Move eld and select Automatic Move. With this conguration, you will see the two stock moves.
Figure 5.16: Automatic Stock Move to Quality Control If you select Automatic Move No Step Added, you will only see one stock move: Suppliers > Quality Control
Figure 5.17: Automatic Stock Move to Quality Control (No Step Added)
94
Everything about goods receipt can also be done manually in the same way for a customer delivery. This time, use the automated product delivery processes based on customer orders. Install the sale module (Recongure wizard, Sales Management), so that you can proceed further in this section of the chapter. Now create a new sales order from the menu Sales Sales Sales Orders. Enter the following data in this order: Shop : OpenERP S.A. Customer : Agrolait Sales order lines : Product : [PC2] Basic+ PC (assembly on order), Quantity (UoM) : 3, Product UoM : PCE, Procurement Method : from stock. You have already seen that OpenERP shows the available product stock in list view. The real stock is equal to the virtual stock because you have nothing to deliver to customers and you are not waiting for any of these products to be received into stock. The salesperson then has all the information needed to take orders efciently.
Figure 5.18: Entering an Order for Three Computers Then conrm the quotation to convert it to an order. If you return to the product form, you will see the virtual stock is now smaller than the real stock. Start the scheduler through the menu Warehouse Schedulers Compute Schedulers. Its functionality will be detailed in ch-mnf. This manages the reservation of products and places orders based on the dates promised to customers, and the various internal lead times and priorities. Three products will be reserved in the order that you created, so they cannot be sold to another customer.
95
Just in Time Install the module mrp_jit to schedule each order in real time after it has been conrmed. This means that you do not have to start the scheduler or wait for its periodical start time.
Now have a look at the list of deliveries waiting to be carried out using the menu Warehouse Warehouse Management Delivery Orders. You nd a line there for your order representing the items to be sent. Double-click the line to see the detail of the items proposed by OpenERP.
States OpenERP distinguishes between the states Conrmed and Assigned. An item is Conrmed when it is needed, but the available stock may be insufcient. An item is Assigned when it is available in stock and the storesperson reserves it: the necessary products have been reserved for this specic operation.
You can also conrm a customer delivery from a conrmed Sales Order. When you click the Process button of Outgoing Deliveries, a window opens where you can enter the quantities actually delivered. If you enter a value less than the forecasted one, OpenERP automatically generates a partial delivery note and a new order for the remaining items. For this exercise, just conrm all the products. However, if you want to look at a partial shipping, an example will be developed at the end of this section. 96 CHAPTER 5. YOUR WAREHOUSE
If you return to the list of current orders, you will see that your order has now been marked as delivered (Done). A progress indicator from 0% to 100% is shown by each order so that the salesperson can follow the progress of his orders at a glance.
Negative Stock Stock Management is very exible to be more effective. For example, if you forget to enter products at goods-in, this will not prevent you from sending them to customers. In OpenERP, you can force all operations manually using the button Force Availability. In this case, your stocks risk to become negative. You should monitor all stocks for negative levels and carry out an inventory correction when that happens.
Partial Shipping Should you have to process a partial delivery, you can go to Warehouse Warehouse Management Delivery Orders, then select the order to process it. In the new window, change the quantity to ship and then conrm it. If you go back to the list view, you will now see a new delivery order with a back order number equal to the just conrmed order. This is illustrated in the following gure.
Figure 5.21: Partial Shipping In the stock moves, you will see that there are two moves. The rst move is for the remaining quantities to ship and the second one is for the shipped goods. There will be more stock moves if you process CHAPTER 5. YOUR WAREHOUSE 97
Return Products from Customers If a customer returns damaged or wrongly delivered products, you can enter this information in OpenERP via Warehouse Warehouse Management Delivery Orders. You have to select the order related to the returned products and click the Return Products. A new window will open and will let you choose the invoicing method.
Figure 5.23: Return Products from Customers When the product is returned, it will go back to your stock and you will see a stock move from Customers > Shelf 1.
Just In Time By default, scheduling starts automatically once a day. You should make this scheduling execute overnight to ensure that the system does not slow down under a heavy load of scheduling when you are also trying to use it interactively. To set the start time for the scheduler, go to the menu Administration Conguration Scheduler Scheduled Actions. Select the rule called Run mrp scheduler and modify the date and time of the next execution. Some companies want to plan orders progressively as they are entered, so they do not wait until procurement orders are planned the next day. Install the module mrp_jit (Recongure wizard,
98
Just In Time Scheduling) to handle this. Once the module is installed, each requirement (that could result in a Production or Purchase Order) will be planned in real time as soon as it has been conrmed. Then if you make a sales order with a product that is Make To Order, the quotation request to a supplier will immediately be generated. Delivery from the Supplier or to the Customer The sale_supplier_direct_delivery module enables you to deliver the product directly from the supplier to the customer. At the time of writing, this module is in extra-addons. The logic that the product follows is congured individually for each product and affects only products marked Make to Order.
This mode does not always makes sense. Each order is processed immediately when conrmed. So if an order is to be delivered in three months, the scheduler will reserve goods in stock for each order once it has been conrmed. It would have been more sensible to leave these products available for other orders. If a Purchase Orders Invoicing Control is congured From Order, the scheduler will immediately create the corresponding supplier quotation request. It might have been better to delay it for several weeks, if you could have used the lead time to group the purchase with other future orders. So the negative effects of working with the Just in Time module are: Poor priority management between orders, Additionally stocked products.
99
Help rental management, by generating automated return moves for rented products. Once this module is installed, an additional Logistics Flows tab appears in the Product form, allowing you to add Push and Pull ow specications. Push Flow Push ows are useful when the arrival of certain products in a given location should always be followed by a corresponding move to another location, optionally after a certain delay. Product The core Warehouse Management application already supports such Push Flow specications on the Locations, but these cannot be rened per product.
A push ow specication indicates which location is chained with another location, as well as the parameters used. As soon as a given quantity of products is moved to the source location, a chained move is automatically foreseen according to the parameters set on the ow specication (destination location, delay, type of move, journal, etc.) The new move may be processed automatically, or may require a manual conrmation, according to what you have dened. Suppose whenever the demo data product CPU3 enters the Stock location, it rst has to be moved to the Quality Control location in order to check the quality. Look up the product CPU3 using the menu Warehouse Product Products. To have OpenERP accomplish this move automatically, you have to congure the Push ow as follows: Operation: Receptions to Quality Control Source Location: Stock Destination Location: Quality Control Automatic Move: Automatic No Step Added Delay (days): 1 Shipping Type: Getting Goods Invoice Status: Not Applicable A push ow is related to how stock moves should be generated in order to increase or decrease inventory.
100
Figure 5.25: Push Flow Specication for Product CPU3 Pull Flow Pull ows are a bit different from Push ows, in the sense that they are not related to the processing of product moves, but rather to the processing of procurement orders. What is being pulled is a need, not directly products. A classical example of a Pull ow is when you have an Outlet company, with a parent Company that is responsible for the supplies of the Outlet. [ Customer ] <- A - [ Outlet ] <- B - [ Holding ] <- C - [ Supplier ] Demo Data In our demo data example, the Outlet Company is Shop 1, while OpenERP SA is the parent company.
When a new procurement order A (resulting from the conrmation of a Sales Order, for example) is created in the Outlet (Shop 1), it is converted into another procurement B (through a Pull ow of the
101
move type) requested from the Holding. When procurement order B is processed by the Holding company (OpenERP SA), and if the product is out of stock, it may be converted into a Purchase Order (C) from the Supplier (Push ow of the Buy type). The result is that the procurement order, the need, is pushed all the way between the Customer and Supplier. Technically, Pull ows allow to process procurement orders differently, not only depending on the product being considered, but also depending on which location holds the need for that product (i.e. the destination location of that procurement order). To explain a pull ow for the product CPU1, we rst have to congure the minimum stock rules of CPU1 for the company OpenERP S.A. and Shop 1 using the menu Warehouse Automatic Procurements Minimum Stock Rules or by selecting the product concerned and then clicking the Minimum Stock Rules action. Minimum Stock Rules If you work with the demo data, these minimum stock rules have already been dened.
For the company OpenERP S.A.: Min Quantity : 10 Max Quantity : 50 For the company Shop 1; Min Quantity : 10 Max Quantity : 20 Look up the product CPU1 using menu Warehouse Product Products in order to dene the conguration of the pulled ow. There are two specications of a pull ow for product CPU1. Specication 1: Name : Receive from Warehouse Destination Location : Shop 1 Type of Procurement : Move Source Location : Internal Shippings Partner Address : OpenERP S.A., Belgium Gerompont Chaussee de Namur 40 Shipping Type : Getting Goods Procure Method : Make to Order 102 CHAPTER 5. YOUR WAREHOUSE
Figure 5.26: Pull Flow Specication for Product CPU1 Invoice Status: Not Applicable Specication 2: Name : Deliver Shop Destination Location : Internal Shippings Type of Procurement : Move Source Location : Stock Partner Address : Fabien Shipping Type : Sending Goods Procure Method : Make to Stock Invoice Status: Not Applicable Now sell 1 unit of product CPU1 from the Shop1 (do not forget to conrm your sales order) and run the scheduler using the menu Warehouse Schedulers Compute Schedulers. Then check the stock moves for product CPU1 from the menu Warehouse Traceability Stock Moves. CHAPTER 5. YOUR WAREHOUSE 103
Figure 5.27: Stock Move of CPU1 related to Pull Flow Specication These moves can be explained like this: [ Customer ] < [ Shop 1 ] < Internal Shippings < Stock < [ OpenERP S.A. ] When the company Shop 1 sells one unit of CPU1 to a customer, its stock decreases to 10 units. According to the minimum stock rule of the product CPU1, OpenERP generates a procurement order of 21 units of CPU1 for the company Shop 1 (OP/00007, or another number if you have added extra data). So 21 units of CPU1 move from OpenERP S.A. Stock to Shop 1 according to their internal conguration of Source and Destination Locations. A pull ow is related to how the procurement process runs in order to nd products to increase or decrease inventory.
You nd a mix of these two modes used for the different nal and intermediate products in most industries. The procurement method shown on the product form is a default value for the order, enabling the salesperson to choose the best mode for fullling a particular order by varying the sales order parameters as needed. The gures Change in Stock for a Make to Stock Product (page 105) and Change in Stock for a Make to Order Product (page 105) show the change of stock levels for one product managed as Make to Order and another managed as Make to Stock. The two gures are taken from OpenERPs Stock Level Forecast report, available from the product form.
105
Logistical Methods The Make to Stock logistical approach is usually used for high volumes and when the demand is seasonal or otherwise easy to forecast. The Make to Order approach is used for products that are measured, or very expensive to stock or have a short restocking time.
Table 5.9: Consequences of Procurement Methods Make to Stock (MTS) and Make To Order (MTO) Procurement Method MTS MTO Produce Wait for availability Production Order Buy Wait for availability Purchase Order
Table 5.10: Consequences of Procurement Methods when using Services Procurement Method MTS MTO Produce / Create task Buy / Subcontract
106
Figure 5.30: Workow for Automatic Procurement, depending on the Product Conguration
The table below shows some examples of units of measure and their category. The factor is used to convert from one unit of measure to another as long as they are in the same category.
107
Table 5.11: Example Units of Measure UoM Kg Gram Tonne Hour Day Half-day Item 100 Items Category Weight Weight Weight Working time Working time Working time Unit Unit Ratio 1 1000 1000 8 1 4 1 0.01 UoM Type Reference Smaller Bigger Smaller Reference Smaller
Depending on the table above, you have 1Kg = 1000g = 0.001 Tonnes. A product in the Weight category could be expressed in Kg, Tonnes or Grammes. You cannot express it in hours or pieces, for example. Use the menu Warehouse Conguration Products Units of Measure Units of Measure to dene a new unit of measure. In the denition of a Unit of Measure, you have a Rounding precision factor which shows how amounts are rounded after the conversion. A value of 1 gives rounding to the level of one unit. 0.01 gives rounding to one hundredth. Secondary Units OpenERP supports double units of measure. Notice however that the default unit of measure and the purchase unit of measure have to be in the same category. Only the sales unit of measure may be in a different category. This is very useful in the agro-food industry, for example: you sell ham by the piece, but invoice by the Kg. A weighing operation is needed before invoicing the customer.
To activate the management options for double units of measure, assign the group Useability / Product UoS View to your user. In this case, the same product can be expressed in two units of measure belonging to different categories for sales and stock/purchase. You can then distinguish between the unit of stock management (the piece) and the unit of invoicing or sales (kg).
Figure 5.31: Secondary Unit of Measure In the product form you can set one unit of measure for sales and stock management, and one unit of 108 CHAPTER 5. YOUR WAREHOUSE
measure for purchases. For each operation on a product, you can use another unit of measure, as long as it can be found in the same category as the two units already dened. If you use another unit of measure, OpenERP automatically handles the conversion of prices and quantities. So if you have 430 Kg of carrots at 5.30 EUR/Kg, OpenERP will automatically make the conversion if you want to sell in tonnes 0.43 tonnes at 5300 EUR / tonne. If you had set a rounding factor of 0.1 for the tonne unit of measure, OpenERP will tell you that you have only 0.4 tonnes available. Packaging The packaging allows you to ship products in several ways. For example, you can ship goods by boxes or by pallets. At rst, you have to dene possible packaging. To dene the packaging, go to :menuselection: Warehouse > Conguration > Product > Packaging and click New.
Figure 5.32: Packaging denition To complete the creation of a new packaging, you have to give it a name and a type. Different types are available in OpenERP: Box, Pack, Pallet and Unit. Once all packaging is dened, you can attach the packaging to your products through the following menu: Warehouse Conguration Product Packaging.
109
Product Trading Also called the Production Plan, this tool is also very useful for traded products which are not manufactured. You can use it for stock management with purchased and manufactured products.
No quantity available in stock: you have to create a rule for automatic procurement (for example, a minimum stock rule) and put it in the order, or manually procure it. Some problems are just those of timing and can be automatically corrected by the system. Use the menu Warehouse Schedulers Procurement Exceptions to see all the exceptions. If a product has to be in stock, but is not available in your stores, OpenERP will make the exception as temporary or to be corrected. The exception is temporary if the system can procure it automatically, for example, if a procurement rule is dened for minimum stock.
Figure 5.34: Example of a Procurement in Exception If no procurement rule is dened, the exception has to be corrected manually by the user. Once the exception is corrected, you can restart by clicking Retry. If you do not do that, OpenERP will automatically recalculate on the next automated requirements calculation.
112
The calculation of requirements prioritises the procurements. If you encode a purchase directly, you short-circuit the planning of different procurements. Shortcuts On the product form you have an ACTIONS shortcut button Create Procurements that lets you quickly create a new procurement order.
Go to the menu Sales Conguration Stock and Sales Periods Create Stock and Sales Periods. A window appears enabling you to automatically dene the next periods that will be provided for stock management. For this example, create weekly periods. Salespeople can then enter their sales forecasts by product and by period using the menu Sales Sales Forecasts Sales Forecasts. The forecasts can be made by quantity or by value. For a forecast by amount, OpenERP automatically calculates the quantity equivalent to the estimated amount. This can be modied manually as needed before completion. A salesperson can create sales forecasts manually, or he can use the Create Sales Forecasts wizard in the above menu.
113
114
Closed outgoings which are the consumption of manufacturing waiting and deliveries to be made to customers, Forecast outgoings, calculated from the planned outgoings, less the closing amounts, Planned outgoings, manually entered by the logistics manager, Sales forecasts, which represent the sum of forecasts made by the salespeople.
Figure 5.40: The Master Production Schedule (MPS) The production plan enables the logistics manager to play with the forecast receipts and outgoings and test the impact on the future stock for the product concerned. It enables you, for example, to check that the stock does not fall below a certain level for that product. You can also open the production plan for past periods. In this case, OpenERP shows you the real stock moves, by period for forecast reports. If you do not have automated procurement rules for a product, you can start procurement at any time based on the estimates of the production plan. To do this, press the button Procure Incoming Left (i.e. remaining) on the Master Procurement Schedule. OpenERP plans procurement for an amount equal to the entries forecast.
115
Upstream Traceability It runs from the raw materials received from the supplier and follows the chain to the nished products delivered to customers. (Note that the name is confusing - this would often be considered a downstream direction. Think of it as Where Used.)
Downstream Traceability It follows the product in the other direction, from customer to the different suppliers of raw material. (Note that the name is confusing - this would often be considered an upstream direction. Think of it as Where Supplied.)
Figure 5.41: History of Stock Movements Each stock move is in a given state. The various states are: Draft : the move so far has no effect in the system. The transaction has not yet been conrmed, Confirmed : the move will be done, so it will be counted in the calculations of virtual stock. But you do not know whether it will be done without problem because the products have been reserved for the move, Validated : the move will be done and the necessary raw materials have been reserved for the transaction, 116 CHAPTER 5. YOUR WAREHOUSE
Done : the stock move has been done, and entered into the calculations of real stock, Waiting : in the case of transactions From Order, this state shows that the stock move is blocked waiting for the end of another move, Cancelled : the stock move was not carried out, so it is not taken into account in either real stock or virtual stock. Delivery orders, goods receipts and internal picking lists are just documents that group a set of stock moves. You can also consult the history of these documents using the menu Warehouse Traceability Packs.
5.5.2 Lots
OpenERP can also manage product lots. Two lot types are dened: Production lots (batch numbers) are represented by a unique product or an assembly of identical products leaving the same production area. They are usually identied by bar codes stuck on the products. The batch can be marked with a supplier number or your own company numbers. Tracking numbers are logistical lots to identify the container for a set of products. This corresponds, for example, to the pallet numbers on which several different products are stocked. These lots can be encoded onto all stock moves and, specically, on incoming shipments lines, internal moves and outgoing deliveries.
117
To enter the lot number in an operation, you can use an existing lot number or create a new pack. A production lot (batch number) is used for a single product. A tracking number can be used several times for different products, so you can mix different products on a pallet or in a box. Simplied View In the Simplified view, the tracking numbers cannot be seen: the eld is hidden. To get to Extended view mode, assign the group Useability / Extended View to the current user, or change the User Preferences.
You can also specify on the product form the operations in which a lot number is required. You can then compel the user to set a lot number for manufacturing operations, goods receipt, or customer packing. You do not have to encode the lot numbers one by one to assign a unique lot number to a set of several items. You only need to take a stock move for several products line and click the button Split in Production Lots. You can then give a lot number prex (if you want) and OpenERP will complete the prex in the wizard with a continuing sequence number. This sequence number might correspond to a set of pre-printed barcodes that you stick on each product.
5.5.3 Traceability
If you key in the lot numbers for stock moves as described above, you can investigate the traceability of any given lot number. Go to the menu Warehouse Traceability Production Lots or Warehouse Traceability Packs.
118
Product Shortcuts From the product form, the toolbar to the right offers useful information: Minimum Stock Rules, Stock by Location, Product Sales, Bills of Material.
Search for a particular lot using the lters for the lot number, the date or the product. Once you can see the form about this lot, several actions can be performed: Upstream Traceability: from supplier through to customers, Downstream Traceability: from customer back to suppliers, Stock in all the physical and virtual locations.
Figure 5.45: Tracing Downstream in Make to Stock Finally, on a lot, you can enter data on all the operations that have been done for the product. That keeps a useful history of the pre-sales operations.
2. Warehouse Product Moves Deliver Products 3. Warehouse Warehouse Management Incoming Shipments
Figure 5.47: Scrapping from an Internal Move 5. Warehouse Warehouse Management Delivery Orders When you decide to scrap some products, they are transferred to the Scrap location. To display the content of this Virtual Location, go to :menuselection: Warehouse > Inventory Control > Location Structure, then select the virtual locations and display the Scrap location. If you want to transfer the products to another location, you can create a new one and check the Scrap Location in the additional information.
120
5.7 Identifying Products and Locations with Barcodes and RFID Devices
You can the barcode in the product form in the eld EAN13.
121
location or link several locations to the same account, depending on the level of analysis needed. You use this system for managing consigned stocks: a supplier location that is valued in your own accounts or, a location in your own company that is not valued in your accounts. How to Congure Accounting Valuation? In the Product form, go to the Accounting tab and select the Real Time (automated) option for Inventory Valuation, To dene your accounts, you have two options. Set them on the product category, or on the product. 1. From the Accounting Stock Properties section, for the Product Category, set the Stock Input Account, the Stock Output Account and the Stock Variation Account, 2. From the Accounting tab, for the Product, set the Stock Input Account and the Stock Output Account. You can also overwrite the accounts from the Product or the Product Category by dening Stock Input Account and Stock Output Account for a Location. account_anglo_saxon You can also install the account_anglo_saxon module (Recongure wizard, Anglo-Saxon Accounting) to value your stock according to Anglo-saxon principles.
The gure below shows the various accounts that can be used, with and without the account_anglo_saxon module installed.
To dene the delivery pricelist according to the price, the weight or the volume. Now, in each Delivery Order, two new elds are available to enter the right value to deliver the products to the customer. You can also nd a new eld in the Sales Order form that enables you to select a delivery method.
122
123
124
Default Values To enter all the orders in his own stock journal, a salesperson can use the default values that are entered in the elds when creating orders.
Finally, the stock journals can also be used as delivery journals to post each item into a delivery journal. For example, you can create journals dated according to customer delivery dates (such as Mondays deliveries, or afternoon deliveries) or these journals could represent the days work for delivery vehicles (such as truck1, truck2).
Figure 5.54: Partner Form in Invoicing Mode You can create a new Invoicing Journal for a partner through the menu Sales Conguration Sales Invoice Types. You can decide if the invoices should be grouped or not when generating them in the journal. Create a second invoicing journal End-of-Month Invoicing which you can assign to another partner. Then enter the data for some sales orders for these two partners. After entering sales order data, the eld Invoicing Mode in the second tab Other Information is completed automatically from the partner settings.
125
Figure 5.55: Dening an Invoicing Journal Look at the History tab of the Sales order, and observe the Picking List that has been created. The eld Invoicing Mode is automatically shown there.
Figure 5.56: Generated Picking Lists At the end of the day, the invoicing supervisor can display the list by journal. Go to the menu Sales Invoicing Lines to Invoice. Add a New Filter by selecting Invoice Type contains Daily, or any other part of the invoice journal you are using. Select the different orders in the list. You can automatically 126 CHAPTER 5. YOUR WAREHOUSE
carry out invoicing by clicking the action Make Invoices (the gears symbol). Conrming Invoices By default, invoices are generated in the draft state, which enables you to modify them before sending them to the customer. But you can conrm all the invoices in one go by selecting them all from the list and selecting the action Conrm Draft Invoices.
At the end of the month the invoicing management does the same work, but in the journal month-end invoicing. You can also enter a journal to conrm / cancel all the orders in one go. Then you can do several quotations, assign them to a journal and conrm or cancel them at once.
127
For example, if we have to deliver some products to a customer in a month (in 30 days). You promise to deliver the goods to the customer within 10 days, the manufacturing time is equal to 4 days and our suppliers deliver the raw materials within 3 days. According to those numbers, we will have to start the process in 23 days if we have to order raw materials.
Figure 5.58: Planning the Deliveries of Customer Products Thanks to this module, you will be able to calculate a planning of the stock for a product. Planned dates on a packing order are put in each stock move line. If you have a packing order containing several products, not all of the lines necessarily need to be delivered the same day. The minimum and maximum dates in a packing order show the earliest and latest dates on the stock move lines for the packing.
128
If you move a packing order in the calendar view, the planned date in the stock move lines will automatically be moved as a result.
Figure 5.59: Create your Own Reports This newly added section allows you to dene for your new report: The general conguration: The aim of this tab is to choose the models your report will rely on. The view parameters This tab will dene the display of your report. You can choose between the traditional available views (Tree/List, Form, Graph and Calendar) and you can dene three different ways to display your report. The elds to display CHAPTER 5. YOUR WAREHOUSE 129
The elds available to display will depend on the models you choose in the General Conguration tab. When you add a new eld to your report, different elds have to be specied: Sequence - denes the order in which the elds will be displayed in the report Field - the information you want to display in your report Grouping method - affects the way the eld is displayed. You can choose between Grouped, Sum, Minimum, Count, Maximum and Average Graph mode - denes which axe of the graph the eld will represent Calendar mode - denes the meaning of the eld for the calendar (Starting or Ending date, Delay, End Date, Unique Colours) The lters on elds This tab will let you choose which data to display according to the value of a eld. It is possible to manually modify or add new lters according to your needs. The security The security tab is used to select the groups that are able to display the report. Create Report with OpenOfce You can also create or edit reports with OpenOfce using the base_report_designer module. In order to add the extension to OpenOfce, load this module and start the conguration. A new window will ask you to Save As a le that contains the extension. Once you have saved the le, start OpenOfce and go to Tools Extension Manager, then click Add and select the previously saved le. Restart OpenOfce.org and now you have the extension installed.
know when they are likely to arrive at their destination, know your value in transit, follow the development of the different steps. Linked locations in OpenERP enable you to manage all this rather elegantly. You can use a structure like this: Suppliers European Suppliers Chinese Suppliers In transit Shanghai Port Pacic Ocean San Francisco Port San Francisco Customs
5.14.1 Stock
The transit locations are linked between themselves with a manual conrmation step. The internal stock move is validated at each port and customs arrival. OpenERP prepares all the linked moves automatically. Intrastat Companies that do import / export should install the module report_intrastat. This enables them to prepare the reports needed to declare product exports.
You can use the lead times between different locations to account for real delays. Your lead times and stock forecasts are calculated by OpenERP to estimate the arrival of incoming products, so that you can respond to a customers needs as precisely as possible. You can also value the products in transit in your account depending on the chosen stock location conguration.
131
Then the set of real and virtual stocks is maintained daily in real time. The different operations such as delivery and receipt after a few days are automatically suggested by OpenERP which simplies the work of data entry. You then have the product list found in the customer locations and your own stock in your stock location. The list of waiting goods receipts is automatically generated by OpenERP using the location links. Suppose you want to rent a product (PC3) to your customer (Axelor) for 30 days. Two stock movement entries are needed to manage this scenario: 1. Product goes from Stock (your companys location) to Axelor - Rental Location (your customer location). 2. Product will be returned into Stock (your companys location) from Axelor - Rental Location (your customer location) after 30 days. To manage rental products by linking locations, congure a rental location (Axelor - Rental Location) as shown in the following gure using the menu Warehouse Conguration Warehouse Management Locations.
Figure 5.61: Conguration of a Rental Location Axelor - Rental Location Through the menu Warehouse Traceability Stock Moves, you can create a stock movement entry from Stock to Customer Location (Axelor - Rental Location) in OpenERP for a rental product (PC3). The stock movement entry from Customer Location (Axelor - Rental Location) to Stock is generated automatically on the proper Scheduled Date by OpenERP when you have conrmed the previous stock movement entry by clicking the Process Now button. 132 CHAPTER 5. YOUR WAREHOUSE
Figure 5.62: Stock Movement Entry to Send the Product PC3 to the Customer Location The same principle is used for internal stock to generate quality control for certain products.
133
Table 5.12: Bill of Materials Field Product Product Qty Name BoM Type Company Value Product A 1 Product A Normal OpenERP US
The different components to produce one unit of Product A are one unit of Product B and one unit of Product C. Table 5.13: Companies and Products Company OpenERP SA OpenERP SA OpenERP US OpenERP US What Sell the Product A Store the Product C Produce the Product A Store the Product B
Table 5.14: Logistics Flows Name Ask for Production Launch Production Send Product to Transit Get Product from Transit Type Pull Pull Pull Pull Product Product A Product A Product C Product C Goal of the ow OpenERP SA asks OpenERP US to produce the Product A OpenERP US launches the production of the Product A OpenERP US asks for the Product C to OpenERP SA OpenERP US receives the Product C
Figure 5.63: Ask for Production With this conguration, when a Sales Order for 3 units of Product A is conrmed and the scheduler has been launched, you will have the following procurements: And the following stock moves have been generated: Because we are working in two different companies, different stock moves have been generated. The products have to move from OpenERP SA to OpenERP US for the products C. After the manufacturing process, the products A have to move from OpenERP US to OpenERP SA to be sold to the customer. 134 CHAPTER 5. YOUR WAREHOUSE
135
Figure 5.68: Stock Moves Once you have conrmed the different moves for the products B and C, the Manufacturing Order is in ready to produce status. So you can run the production of the three units of Product A.
Figure 5.69: Launch the Production Once again due to the use of two companies, you have to conrm different deliveries. One to deliver the product from OpenERP US to OpenERP SA and another to deliver the product from OpenERP SA to the customer. Now you have to conrm the delivery of the three units from OpenERP US to OpenERP SA, then to conrm the reception of the products in OpenERP SA and nally, deliver the products to you nal customer.
136
Part IV
137
138
Manufacturing management in OpenERP is based on its stock management and equally very exible in both its operations and its nancial control. It particularly benets from the use of double-entry stock management for production orders. Manufacturing management is implemented by the mrp module. It is used to transform all kinds of products: Assemblies of parts: composite products, soldered or welded products, assemblies, packs, Machined parts: machining, cutting, planing, Foundries: clamping, heating, Mixtures: mixing, chemical processes, distillation. You will work in two areas: with products in the rst part of this chapter, and with operations in the second part. The management of products depends on the concept of classications while operations management is related to routing and workcenters. Bills of Materials Bills of Materials, or manufacturing specications, go by different names depending on their application area, for example: Food: Recipes, Chemicals: Equations, Building: Plans.
For this chapter you should start with a fresh database that includes demo data, with mrp (Manufacturing) and its dependencies installed and a generic chart of accounts congured. As you will notice, when you select Manufacturing to be installed, OpenERP will install the linked applications automatically.
139
Figure 6.1: Plan of Construction of a Shelf The shelf is assembled from raw materials and intermediate assemblies. The Image Code refers to the picture, the Product Reference is the corresponding code in OpenERP. Change the unit of the Wood Lintel 4m (LIN40) product to m instead of PCE.
Table 6.1: Product Denitions before dening Bills of Materials (already dened) Image Code ARM100 PANLAT PANA100 PROFIL ETA100 BOIS002 TAQ000 LIN40 Product Reference SHE100 SIDEPAN RPAN100 PROFIL RCK100 WOOD002 METC000 LIN40 Description Shelf 100 cm Side Panel Rear Panel SHE100 Assembly Section Rack 100cm Wood 2mm Metal Cleats Wood Lintel 4m
140
Table 6.2: New Products to be created before dening Bill of Materials Image Code PLET100 BOIS010 Copy To create the above products, duplicate existing ones, such as Side Panel and Wood 2mm, from the Purchase or Sales menu Purchases Products Products. Product Reference SPAN100 WOOD010 Description Shelf Panel Wood 10mm
To describe how this shelf should be assembled, you dene a bill of materials for each intermediate product and for the nal shelf assembly. These are shown in the tables below. You can start from the demo data and complete them according to the specications. To create or change a bill of materials, go to Manufacturing Master Data Bill of Materials.
Table 6.3: Bill of Materials for 1 SHE100 Unit (already dened) Product Ref. PROFIL SIDEPAN METC000 RPAN100 RCK100 Quantity 4 2 12 1 3 Unit of Measure PCE PCE PCE PCE PCE
Table 6.4: Bill of Materials for 1 RCK100 PCE Product Code SPAN100 METC000 Quantity 1 4 Unit of Measure PCE PCE
Table 6.5: Bill of Materials for 1 SPAN100 PCE Product Code WOOD010 Quantity 0.083 Unit of Measure m
Table 6.6: Bill of Materials for 1 PROFIL PCE Product Code LIN40 Quantity 0.25 Unit of Measure m
Table 6.7: Bill of Materials for 1 RPAN100 PCE Product Code WOOD002 Quantity 0.25 Unit of Measure m 141
Table 6.8: Bill of Materials for 1 SIDEPAN PCE Product Code WOOD002 Quantity 0.083 Unit of Measure m
The bills of materials are then used by the software to calculate the raw material needs based on the requirements of the nished products. So if you want to manufacture 10 shelves, the system can calculate the actual products that will be consumed: Table 6.9: Total Quantities per Shelf Product Code WOOD002 LIN40 WOOD010 METC000 Bill of Materials To see the bill of materials in tree view, use the menu Manufacturing Master Data Bill of Materials then select the product and click the action BOM Structure. Quantity 0.416 (2 * 0.083 + 0.25) 1 (4 * 0.25) 0.249 (0.083 * 3) 132 ((3 * 4) + (10 * 12)) Unit of Measure m m m PCE
Figure 6.2: Bill of Materials structure Use the menu Manufacturing Master Data Bill of Materials and click the New button to dene a new bill of materials. The Different Views To change the view in the bill of materials you can: From the list, select a bill of materials name and then click Form View, From a product form, use the menu Product BoM Structure to the right.
142
Figure 6.3: Dening a Bill of Materials (Extended view) In the Product eld of the bill of materials, you should set the nished product, which will be manufactured or assembled. Once the product has been selected, OpenERP automatically completes the name of the bill of materials and the default Unit of Measure for this product. The type of BoM (BoM Type : Sets/Phantom or Normal BoM) and the Routing eld will be described in more detail later in the chapter. Now you can select the raw materials (Components) that are used to manufacture the nished product. The quantities are set out based on the quantities of nished product and the quantities needed to produce them from the bill of materials. The second tab, Revisions, is used to register all the changes made to the bill of materials. On each change, you can specify a revision number and some notes on the modications you carried out. Simplied View The Revisions tab is only visible if the user works in the Extended view mode (which means that the user should belong to the group Useability / Extended View .
Figure 6.4: Revisions of a Bill of Materials (Extended view) In the third tab, Properties, you can put a free text reference to a plan, a sequence number that is used to determine the priorities between bills of materials, dates between which a bill of materials is valid, and values for rounding and production efciency. Rounding is used to set the smallest Unit of Measure in which the quantities of the selected product can be expressed. So if you set the rounding to 1.00, you will not be able to manufacture half a piece. The Efciency of the product lets you indicate the percentage you lose during manufacturing. This loss CHAPTER 6. DEFINING YOUR MASTER DATA 143
Figure 6.5: Properties of a Bill of Materials can be dened for the nished product or for each raw materials (components) line. The impact of this efciency gure is that OpenERP will reserve more raw materials for manufacturing than you would otherwise use just from the Bill of Materials calculations. The nal part of the third tab lets you set some properties for the products manufacturing processes. These will be detailed further on in the chapter in the section about congurable products.
Table 6.10: Single Bill of Materials for 1 SHE100 Unit Product Ref. SHE100 SIDEPAN WOOD002 RPAN100 WOOD002 PROFIL LIN40 RCK100 SPAN100 WOOD010 METC000 Quantity 1 2 0.166 1 0.25 4 1 3 3 0.249 132 Unit of Measure PCE PCE m PCE m PCE m PCE PCE m PCE
OpenERP behaves differently depending on whether the bill of materials is dened in several small BoMs each on a single level or in one BoM tree-structured on several levels. 144 CHAPTER 6. DEFINING YOUR MASTER DATA
If you select a BoM using intermediate products that automatically generates production orders based on calculated requirements, OpenERP will propose to manufacture an intermediate product. To manufacture a shelf according to the different bills of materials dened, you would create 6 production orders:
Table 6.11: Production Order Product Ref. SPAN100 WOOD010 Quantity 3 0.249 Unit of Measure PCE m
Table 6.12: Production Order Product Ref. RCK100 SPAN100 METC000 Quantity 3 3 12 Unit of Measure PCE PCE PCE
Table 6.13: Production Order Product Ref. PROFIL LIN40 Quantity 4 1 Unit of Measure PCE m
Table 6.14: Production Order Product Ref. RPAN100 WOOD002 Quantity 1 0.25 Unit of Measure PCE m
Table 6.15: Production Order Product Ref. SIDEPAN WOOD002 Quantity 2 0.17 Unit of Measure PCE m
Table 6.16: Production Order Product Ref. SHE100 SIDEPAN RPAN100 PROFIL RCK100 METC000 Quantity 1 2 1 4 3 12 Unit of Measure PCE PCE PCE PCE PCE PCE
In the case where a single bill of materials is dened in multiple levels, a single manufacturing order will be generated for each shelf, including all of the sub BoMs. You would then get the following production order: CHAPTER 6. DEFINING YOUR MASTER DATA 145
Table 6.17: Single Production from a tree-structured BoM Product Ref. SHE100 WOOD002 WOOD002 LIN40 WOOD010 METC000 Quantity 1 0.17 0.25 1 0.249 132 Unit of Measure PCE m m m m PCE
Table 6.18: Dening and Using Phantom BoMs Product Ref. SHE100 SIDEPAN RPAN100 PROFIL RCK100 Quantity 1 2 1 4 3 Unit of Measure PCE PCE PCE PCE PCE Type of BoM normal normal phantom phantom phantom
146
Table 6.19: Production Order from Phantom BoMs Product Ref. SHE100 SIDEPAN WOOD002 LIN40 WOOD010 METC000 Quantity 1 2 0.25 1 0.249 12 Unit of Measure PCE PCE m m m PCE
Table 6.20: Production Order from Normal BoM Product Ref. SIDEPAN WOOD002 Quantity 2 0.17 Unit of Measure PCE m
Kits/Sets bills of materials enable you to dene assemblies that will be sold directly. These could also be used in deliveries and stock management rather than just sold separately. For example, if you deliver the shelf in pieces for self-assembly, set the SHE100 BoM to type Sets / Phantom. When a salesperson creates an order for a SHE100 product, OpenERP automatically changes the SHE100 from a set of components into an identiable package for sending to a customer. Then it asks the storesperson to pack 2 SIDEPAN, 1 RPAN100, 4 PROFIL, 3 RCK100. This is described as a SHE100, not just the individual products delivered.
147
Use the menu Manufacturing Conguration Resources Work Centers to dene a new work center. You get a form as shown in the gure Dening a Work Center (page 148).
Missing elds If some elds such as Analytic Journal, General Account in the view are missing, you have to add the user group Useability / Analytic Accounting.
A work center should have a name. You then assign a type: Machine or Human, a code and the operating hours, i.e. Working Period. The Working Time(s) can be dened through the menu Manufacturing Conguration Resources Working Time. The gure Dening a Work Center (page 148) represents the hours from Monday to Friday, from 08:00 to 18:00 with a break of an hour from 12:00. You can also add a description of the work center and its operations. Once the work center is dened, you should enter data about its production capacity. Depending on whether you have a machine or a person, a work center will be dened in cycles or hours. If it represents a set of machines and people you can use cycles and hours at the same time. A Cycle A cycle corresponds to the time required to carry out an assembly operation. The user is free to determine which is the reference operation for a given work center. It should be represented by the cost and elapsed manufacturing time. For example, for a printing work center, a cycle might be the printing of 1 page or of 1000 pages depending on the printer.
148
To dene the capacity properly, it is necessary to know, for each work center, what will be the reference operation which determines the cycle. You can then dene the data relative to the capacity. Capacity per Cycle (CA): the number of operations that can be done in parallel during a cycle. Generally, the number denes the number of identical machines or people dened by the work center. Time for 1 cycle (hour) (TC): the duration in hours for one cycle or the operations dened by a cycle. Time before production (TS): the time in hours required to initialize production operations. Generally, this represents the machine setup time. Time after production (TN): the delay in hours after the end of a production operation. Generally, this represents the cleaning time necessary after an operation. Efciency factor (ET): the factor that is applied to the TC, TS and TN times to determine the real production time. This factor enables you to readjust the different times progressively and as a measure of machine utilization. You cannot re-adjust the other times, because generally they are taken from the machines data sheet. By default, the efciency is set to 1, representing a load of 100%. When you set the efciency to 2 (i.e. 200%), the load will be 50%. The total time for carrying out X operations is then given by the following formula: ((X / CA) * TC + TS + TN ) * ET In this formula the result of the division is rounded upwards. Then, if the capacity per cycle is 6, it takes 3 cycles to realize 15 operations (15/6 = 2.5, rounded upwards = 3). With the Hour Account and Cycle Account you dene the links to analytical accounting, to report the costs of the work center operations. If you leave the different elds empty, it will not have any effect on the analytic accounts.
6.3 Routings
Routings dene the manufacturing operations to be done in work centers to produce a certain product. A routing is usually attached to bills of materials, which will dene the assembly of products required for manufacturing or to produce nished products. A routing can be dened directly in a bill of materials or through the menu Manufacturing Conguration Master Bill of Materials Routings. A routing has a name, and a code. You can also add a description. Later in this chapter you will see that a routing can also be associated with a stock location. This enables you to indicate where an assembly takes place. Subcontracting Assembly You will see further on in this chapter that you can also link a routing to a stock location for the customer or the supplier. You can use this functionality when you have subcontracted the assembly of a product to a supplier, for instance.
In the routing, you have to enter the list of operations that has to be executed. Each operation has to be done at a specic work center and includes a number of hours and/or cycles. CHAPTER 6. DEFINING YOUR MASTER DATA 149
Multi-level Routing It is possible to dene routing on several levels to support multi-level bills of materials. You can select the routing on each level of a bill of materials ( BoM in a BoM can have a different routing). The levels are then linked to hierarchies of bills of materials.
Procurement Exceptions Pay attention to the fact that you have to dene minimum stock rules for each product set as Make to Stock.
This more advanced case of handling problems in procurement will be sorted out later in the chapter. To be able to do the following step, add Sales Management through the Recongure wizard.
151
Figure 6.9: Process for Handling Sales Order SO007 Start the requirements calculation using the menu Manufacturing Compute All Schedulers.
152
Figure 6.10: Composition of PC2 2: The nished product using that intermediate product: PC2 The manufacturing supervisor can then consult the production orders using the menu Manufacturing Manufacturing Manufacturing Orders. You then get a list of orders to start (Ready to Produce) and the estimated start date (Scheduled Date) to meet the customer delivery date.
Figure 6.11: List of Manufacturing Orders You will see the production order for CPU_GEN, but not the one for PC2 because it depends on an intermediate product that has to be produced rst. Return to the production order for CPU_GEN and click it. If there are several of them, select the one corresponding to your order using the source document that contains your order number (in this example SO007 ).
Figure 6.12: Details of a Production Order The system shows you that you have to manufacture product CPU_GEN using the components: MB1, CPU1, FAN, RAM. You can then conrm the production twice: Start production: consumption of raw materials, Produce: manufacturing of nished product. Click the Start Production button, then click the Edit button, and edit the line for the product MB1. Enter a lot number for it by putting the cursor in the eld Production Lot and pressing <F1> to
153
create a new lot. Enter an internal reference, for example: MB1345678. The system may then show you a warning because this lot is not in stock, but you can ignore this message. Click the Produce button to manufacture the nished product. The production order has to be in the closed state as shown in the gure Production Order after the Different Stages (page 154).
Figure 6.14: Completed Production for PC2 Now that the production has been completed, the product sold to the customer has been manufactured and the raw materials have been consumed and taken out of stock.
154
Automatic Actions As well as managing the use of materials and the production of stocks, manufacturing can have the following automatic effects which are detailed further on in the chapter: adding value to stock, generating operations for assembly staff, automatically creating analytical accounting entries.
If the module mrp_subproduct has been installed, you get a new tab Sub products in the Bill of Material that lets you set secondary products resulting from the manufacturing of the nished product. When OpenERP generates a production order based on a bill of materials that uses a secondary product, you pick up the list of all products in the the second tab of the production order Finished Products. Secondary products enable you to generate several types of products from the same raw materials and manufacturing methods - only these are not used in the calculation of requirements. Then, if you need the secondary products, OpenERP will not ask you to manufacture another product to use the waste products and secondary products of this production. In this case, you should enter another production order for the secondary product.
155
Services in Manufacturing Unlike most software for production management, OpenERP manages services as well as stockable products. So it is possible to put products of type Service in a bill of materials. These do not appear in the production order, but their requirements will be taken into account. If they are dened as Make to Order, OpenERP will generate a task for the manufacturing or a subcontract order for the operations. The behaviour will depend on the Supply Method congured in the product form: Buy or Produce.
156
6.5.5 Scrapping
If you have to scrap the nal product before it is nished, you will have to scrap every component allowed for this product.
Figure 6.17: Scrapping a Product to Finish If you scrap a Product to Finish, you will get the situation illustrated in the previous gure. A nished product will be created and put in the scrapped virtual location. A new Product to Finish has been added to the manufacturing order. Scrap a product To scrap a product, you have to edit the manufacturing order and then select the product to be scrapped by clicking the little pencil at the left of the item.
This new product has been added for the following reason: when you have to manufacture a product and if this product has to be scrapped, you have to produce another product to replace the scrapped one. The reason why you have to scrap each component manually is that the production problem can come from one component. If the production process is nished and you see that you have to scrap the nished product, you will not have to scrap the different components. They are already consumed. They are not available anymore for further manufacturing orders; they have been moved to the production Stock Location.
158
You then have to set two locations: The location from which the required raw materials should be found, and The location for depositing the nished products. For simplicity, put the Stock location in both places. The eld Bill of Materials will automatically be completed by OpenERP when you select the product. You can then overwrite it with another BoM to specify something else to use for this specic manufacturing, then click the button Compute Data. The tabs Scheduled Products and Work Orders are also completed automatically when you click Compute Data (in the Work Orders or Scheduled Products tabs). You will nd the raw materials there that are required for the production and the operations needed by the assembly staff. If you want to start production, click the button Conrm Production, and OpenERP automatically completes the Products to Consume eld in the Consumed Products tab and Products to Finish eld in Finished Products tab. The information in the Consumed Products tab can be changed if: you want to enter a serial number for raw materials, you want to change the quantities consumed (lost during production). For traceability, you can set lot numbers on the raw materials used, or on the nished products. Note the Production Lot and Pack numbers. Once the order is conrmed, you should force the reservation of materials using the Force Reservation button. This means that you do not have to wait for the scheduler to assign and reserve the raw materials from your stock for this production run. This shortens the procurement process. If you do not want to change the priorities, just leave the production order in this state and the scheduler will create a plan based on the priority and your planned date. To start the production of products, click Start Production. The raw materials are then consumed automatically from stock, which means that the draft ( Waiting ) movements become Done. Once the production is complete, click Produce. The nished products are now moved into stock.
159
6.6.2 Traceability
With traceability you can easily track your production lots in the software. With this functionality you can quickly nd where your products are in your warehouse. In counterpart, you will be forced to mention a number of lot to each product to be able to track it in the system. To enable traceability in the manufacturing process, go to Warehouse Product Products. In the Product form, you have to select the box Track Manufacturing Lots in the Lots section on the Information tab. In the manufacturing order, you have to mention a production lot number in order to continue the process. You can select the production lot in the Manufacturing Order form on the second tab, called Finished Products. You have to click the Products to Finish you want to trace, a new window will open. In the Production Lot eld, click to link the manufacturing order to a production lot.
Figure 6.20: Tracking a Manufacturing Order When you have linked some manufacturing orders to production lots, you can trace them from the menu Warehouse Traceability Production Lots. In this view, you see the different production lots linked to a product. If you select one lot, you will have the possibility to choose between Upstream Traceability or Downstream Traceability.
160
Traceability Upstream Traceability: It starts from the raw materials received from the supplier and follows the chain to the nished products delivered to customers. Note that the name is confusing - this would often be considered a downstream direction. Think of it as Where Used. Downstream Traceability: It follows the product in the other direction, from customer to the different suppliers of raw material. Note that the name is confusing - this would often be considered an upstream direction. Think of it as Where Supplied.
Figure 6.22: Upstream Traceability The different lines show the stock moves attached to the production of the product. There are several stock moves that are traced due to the Bill of Materials attached to the product [PC1] Basic PC.
Figure 6.23: Downstream Traceability In this window, you only see the move for the nished product. This is related to the denition of the concept of Downstream Traceability, which only shows the ow from the customer to the supplier of raw materials.
161
Repairs To install this module, you can also use the Reconfigure wizard. In the MRP Application Conguration screen, check the Repairs option.
In OpenERP, a repair will have the following effects: Use of materials: items for replacement, Production of products: items replaced from reserved stock, Quality control: tracking the reasons for repair, Accounting entries: following stock moves, Receipt and delivery of product from and to the end user, Adding operations that can be seen in the products traceability, Invoicing items used and/or free for repairs.
162
First enter the product to repair, then identify the product that will be repaired using the product lot number. OpenERP then automatically completes elds from the selected lot the partner elds, address, delivery location and stock move. If a warranty period has been dened in the product description, in months, OpenERP completes the eld Guarantee limit with the correct warranty date. Now you have to specify the components that you will be adding, replacing or removing in the Operations part. On each line, you should specify the following: Add or remove a component of the nished product: Product, Qty, UoM, Unit Price, To Invoice or not. Once the component has been selected, OpenERP automatically completes most of the elds: Qty: 1, UoM: unit for managing stock dened in the product form, Unit Price: calculated from the customer list price, Source Location: given by the stock management, To Invoice: depends on the actual date and the guarantee period. This information is automatically proposed by the system, but you can modify it all yourself. On the second tab of the Repair form, Invoicing, you can select whether the repair has to be invoiced or not, and if invoiced whether it should be before or after the repair. You can also select the applicable list price, a specic address and encode additional charges that need to be added to the repair invoice. The third tab, Extra Info shows information about linked invoice and picking. You receive information about the current location, and you can change the Delivery Location. The Notes tab allows you to register internal notes and information that should be written on the Quotation.
164
No Invoice, Before Repair, After Repair. You can then conrm the repair operation or create an invoice for the customer depending on the Invoice Method. The repair quotation can now be sent to the customer. Once the customer approves the repair, click the Conrm Repair button. From the menu Manufacturing Manufacturing Repair Orders you can easily nd the conrmed repair orders by selecting the Confirmed button. Click Start Repair to indicate that you can start working on the repair. The Repair order will now be in the Under Repair state. When you nish the repair, click the End Repair button.
Figure 6.27: Repair for a Side Panel In this example, you would carry out the following operations: Remove a SIDEPAN shelf in the cabinet and put the faulty shelf in the Scrapped location, Place a new SIDEPAN shelf that has been taken from stock. When the repair is ready to be conrmed, OpenERP will generate the following stock moves: Put faulty SIDEPAN into suitable stock location Default Production > Scrapped, Consume SIDEPAN: Stock > Production. If you analyze the traceability of this lot number, you will see all the repair operations in the upstream and downstream traceability lists of the products concerned.
166
Starting Time You can set the starting time of the scheduler by modifying the corresponding action in the menu Administration Conguration Scheduler Scheduled Actions. Modify the Run mrp Scheduler conguration document.
Calculating Requirements / Scheduling Scheduling only validates procurements that are conrmed but not yet started. These procurement reservations will themselves start production, tasks or purchases depending on the conguration of the requested product.
You take into account the priority of operations when starting reservations and procurements. Urgent requests, those with a date in the past, or requests with a date earlier than the others will be started rst. In case there are not enough products in stock to satisfy all the requests, you can be sure that the most urgent requests will be produced rst.
6.8.2 Planning
In OpenERP, you can plan the production in an easy way. Simply by going to Manufacturing Planning, you can plan manufacturing orders, work orders and/or work centers. By clicking Manufacturing Orders in the Planning menu, a calendar view will open in which you can select a day to create the order whenever you want. You will also see the already planned orders. By dragging and dropping a manufacturing order in Calendar view, you can change the starting date of the order. When you click in a day in the Calendar view, an empty manufacturing order window will open and let you choose which product you want to produce.
167
168
Scheduler and Just in Time When you want to work according to the Just in Time way, you should install the module mrp_jit. If you install this module, you will not have to run the regular procurement scheduler anymore (but you still need to run the minimum order point rule scheduler, or for example let it run daily.) All procurement orders will be processed immediately, which could in some cases entail a small performance impact. It may also increase your stock size because products are reserved as soon as possible and the scheduler time range is not taken into account anymore. In that case, you can no longer use priorities for the different picking orders. Lead times All procurement operations (that is, the requirement for both production orders and purchase orders) are automatically calculated by the scheduler. But more than just creating each order, OpenERP plans the timing of each step. A planned date calculated by the system can be found on each order document. To organize the whole chain of manufacturing and procurement, OpenERP bases everything on the delivery date promised to the customer. This is given by the date of the conrmation in the order and the lead times shown in each product line of the order. This lead time is itself proposed automatically in the eld Customer Lead Time shown in the product form. This Customer Lead Time is the difference between the time on an order and that of the delivery. To see a calculation of the lead times, take the example of the cabinet above. Suppose that the cabinet is assembled in two steps, using the two following bills of materials.
Table 6.21: Bill of Materials for 1 SHE100 Unit Product Code SIDEPAN WOOD002 LIN040 WOOD010 METC000 Quantity 2 0.25 1 0.249 12 Unit of Measure PCE m m m PCE
Table 6.22: Bill of Materials for 2 SIDEPAN Units Product Code WOOD002 Quantity 0.17 Unit of Measure m
The SIDEPAN is made from an order using the workow shown. The WOOD002 is purchased on order and the other products are all found in stock. An order for the product SHE100 will then generate two production orders (SHE100 and SIDEPAN) then produce two purchase orders for the product WOOD002. Product WOOD002 is used in the production of both SHE100 and SIDEPAN. Set the lead times on the product forms to the following:
169
Table 6.23: Lead Times Product Code SHE100 SIDEPAN WOOD002 Customer Lead Time 30 days Manufacturing Lead Time 5 days 10 days Supplier Lead Time
5 days
A customer order placed on the 1st January will set up the following operations and lead times: Delivery SHE100: 31 January (=1st January + 30 days), Manufacture SHE100: 26 January (=31 January 5 days), Manufacture SIDEPAN: 16 January (=26 January 10 days), Purchase WOOD002 (for SHE100): 21 January (=26 January 5 days), Purchase WOOD002 (for SIDEPAN): 11 January (=16 January 5 days). In this example, OpenERP will propose placing two orders with the supplier of product WOOD002. Each of these orders can be for a different planned date. Before conrming these orders, the purchasing manager could group (merge) these orders into a single order. Security Days The scheduler will plan all operations as a function of the time congured on the products. But it is also possible to congure these factors in the company. These factors are then global to the company, whatever the product concerned may be. In the description of the company, on the Conguration tab, you nd the following parameters: Scheduler Range Days: all the procurement requests that are not between today and today plus the number of days specied here are not taken into account by the scheduler. Manufacturing Lead Time: number of additional days needed for manufacturing, Purchase Lead Time: additional days to include for all purchase orders with this supplier, Security Days: number of days to deduct from a system order to cope with any problems of procurement, Purchase Lead Time The security delay for purchases is the average time between the order generated by OpenERP and the real purchase time from the supplier by your purchasing department. This delay takes into account the order process in your company, including order negotiation time.
Take for instance the following conguration: 170 CHAPTER 6. DEFINING YOUR MASTER DATA
Manufacturing Lead Time : 1, Purchase Lead Time : 3, Security Days : 2. The example above will then be given the following lead times: Delivery SHE100: 29 January (= 1st January + 30 days 2 days), Manufacture SHE100: 23 January (= 29 January 5 days 1 day), Manufacture SIDEPAN: 12 January (= 26 January 10 days 1 day), Purchase WOOD002 (for SHE100): 15 January (= 26 January 5 days 3 days), Purchase WOOD002 (for SIDEPAN): 4 January (= 12 January 5 days 3 days).
6.8.3 Procurement
In normal system use, you do not need to worry about procurement orders, because they are automatically generated by OpenERP and the user will usually work on the results of a procurement: a production order, a purchase order, a sales order and a task. But if there are conguration problems, the system can remain blocked by a procurement without generating a corresponding document. Exception management allows you to solve possible issues. Automating Purchasing and Replenishment In the Product form view, you can choose between two procurement methods: Make to Stock (MTS) Make to Order (MTO) These two methods will impact the way you have to congure your automatic purchasing and replenishment. For the MTS method, you will have to dene Minimum Stock Rules to order products when the minimum treshold has been reached, as well as a supplier to dene where to order the products. For the MTO method, you have to dene a supplier for the product in order to buy new products when a sales order or a manufacturing order is conrmed. Managing Scheduler Exceptions In OpenERP, you can have different procurement exceptions. An exception appears in the Procurement Exception view when the system does not know what to do with an object, such as a Manufacturing Order or a Purchase Order. There are four types of exceptions:
171
No bill of materials dened for production: in this case you have got to create a BoM or indicate that the product can be purchased instead (change the Supply Method). No supplier available for a purchase: you have to dene a supplier in the Supplier tab of the product form. No address dened on the supplier partner: you have to complete an address for the supplier for the product in consideration. Not enough stock: you have to create a rule for automatic procurement (for example, a minimum stock rule), or manually procure it.
Figure 6.31: Procurement Exceptions Some problems are just timing issues and can be automatically corrected by the system (this will be temporary exceptions). If a product has to be in stock but is not available in your stores, OpenERP will make the exception as temporary or to be corrected. The exception is temporary if the system can procure it automatically, for example, when a procurement rule has been dened for minimum stock. When an exception is raised, you can check the conguration of your product in order to correct the misconguration. Then you can choose to relaunch the scheduler or you can retry to execute the action by selecting the line, and clicking the Retry button, then click Run procurement.
Figure 6.32: Correct a Procurement Exception The exception related to the BoM denition comes from the fact that a product with a supply method set to Produce has no Bill of Materials. The system does not know how to produce this product and then raises an exception. 172 CHAPTER 6. DEFINING YOUR MASTER DATA
Manual Procurement To procure internally, you can create a procurement order manually. Use the menu Warehouse Schedulers Procurement Exceptions and click the New button to do this.
Figure 6.33: Manual Procurement The procurement order will then be responsible for calculating a proposal for automatic procurement for the product concerned. This procurement will start a task, a purchase order for the supplier or a production depending on the product conguration.
173
It is better to encode a procurement order rather than direct purchasing or production. The procurement method has the following advantages: 1. The form is simpler, because OpenERP calculates the different values according to other values and dened rules: purchase date calculated from order date, default supplier, raw materials needs, selection of the most suitable bill of materials, etc. 2. The calculation of requirements prioritises the procurements. If you encode a purchase directly, you short-circuit the planning of different procurements. Shortcuts On the Product form you have an action shortcut button Procurement Request that lets you quickly create a new procurement order.
Subcontract without Routing If you do not use routing, you can always subcontract work orders by creating an empty routing in the subcontracting bill of materials.
Production orders can be found in the menu Manufacturing Manufacturing Manufacturing Orders. A production order is always carried out in two stages: 1. Consumption of raw materials, 2. Production of nished products. Depending on the companys needs, you can specify that the rst step is conrmed at the acknowledgement of the manufacturing supplier, and the second at the receipt of nished goods in the warehouse.
For example, you can dene the following property groups and properties:
175
Table 6.24: Properties Property Group Warranty Warranty Method of Manufacture Method of Manufacture Property 3 years 1 year Serial Batch
Once the bills of materials have been dened, you could associate the corresponding properties with them. Then when the salesperson enters a sales order line, he can attach the properties required (Extra Info tab). If the product has to be manufactured, OpenERP will automatically choose the bill of materials that matches the dened properties in the order most closely. Extended View Note that the properties are only visible in the Bills of Materials and Sales Management if you are working in the Extended view mode. If you cannot see it on your screen, add the group Useability /Extended View to your user.
Figure 6.35: Properties in a Customer Order Line Example: Manufacturing in a Batch or on a Production Line As an example, take the manufacturing of the shelf presented above. You can imagine that the company has two methods of manufacturing for this cabinet: Manually: the staff assembles the shelves one by one and cuts the wood plank by plank. This
176
approach is usually used to assemble prototypes. It gets you very rapid production, but at a high cost and only in small quantities. On a production line: the staff uses machines that are capable of cutting wood by bandsaw. This method is used for production runs of at least 50 items because the lead times using this method are quite lengthy. The delay to start the production is much longer, yet the cost per unit is considerably lower in this volume. You dene two bills of materials for the same cabinet. To distinguish between them, you will dene two properties in the same group: manual assembly and production line assembly. In the quotation, the salesperson can set the method of manufacture he wants on each order line, depending on the quantities and the lead time requested by the customer. Bills of Materials and Substitute Products In some software, you use the term substitute for this principle of congurable properties in a bill of materials.
By putting a bill of materials on its own line, you can also implement substitute products. You set the bill of materials to type Sets/Phantom to make the substitution transparent and to prevent OpenERP from proposing an intermediate production order.
By default, the generated task is not linked to any project. You can change this behaviour by creating a project and link the service to this project. This can be done in the Product form, on the tab Procurement & Locations in the Miscellaneous section. Select the project to be linked in the Project eld. To illustrate this process, follow the next example: First, you have to create a project to which you want to link the service. We will call this project Consulting. After creating the project, we have to create a new product. Here are the characteristics of this product: CHAPTER 6. DEFINING YOUR MASTER DATA 177
Table 6.25: Congure a New Service Field Name Reference Product Type Procurement Method Supply Method Default UoM Project Value Consulting CSLT Service Make to Order Produce Hour Consulting
Once you have congured your project and your product, you can create a Sales Order to order hours of consultancy. When you conrm the Sales Order, a task will be created.
If you go to Project Project Tasks, you will nd a new task called: SO011:[CSLT] Consulting. This task is linked to the project :guilabelConsulting. Note that the Sales Order number may be different in your database.
178
Part V
On Site installation
179
180
For example:
openerp@openerp-desktop:/$ sudo apt-get install postgresql
For example:
openerp@openerp-desktop:/$ sudo apt-get install pgadmin3
You can nd the new menu item pgAdmin III in your Ubuntu system menu from Applications Programming pgAdmin III. 181
Figure 7.1: Figure demonstrating how OpenERP uses the PostgreSQL user to interact with it
Database Without creating and conguring a PostgreSQL user for OpenERP as described below, you cannot create a database using OpenERP Client.
First Method The default superuser for PostgreSQL is called postgres. You may need to login as this user rst.
openerp@openerp-desktop:/$ sudo su postgres password: XXXXXXXXXX
Make this new user a superuser. Only then you can create a database using OpenERP Client. In short, openerp is the new user created in PostgreSQL for OpenERP. This user is the owner of all the tables created by OpenERP Client. Now check the list of tables created in PostgreSQL using following command:
182
postgres@openerp-desktop:/$ psql -l
You can nd the table template1, run the following command to use this table:
postgres@openerp-desktop:/$ psql template1
To apply access rights to the role openerp for the database which will be created from OpenERP Client, use the following command:
template1=# alter role openerp with password postgres; ALTER ROLE
Second Method Another option to create and congure a PostgreSQL user for OpenERP is shown below:
postgres@openerp-desktop:/$ createuser --createdb --username postgres --no-createrole --pwprompt openerp Enter password for new role: XXXXXXXXXX Enter it again: XXXXXXXXXX Shall the new role be a superuser? (y/n) y CREATE ROLE
Option explanations: --createdb : the new user will be able to create new databases --username postgres : createuser will use the postgres user (superuser) --no-createrole : the new user will not be able to create new users --pwprompt : createuser will ask you the new users password openerp : the new users name To access your database using pgAdmin III, you must congure the database connection as shown in the following gure: You can now start OpenERP Server. You will probably need to modify the OpenERP conguration le according to your needs which is normally located in ~/.openerprc.
183
Developer Book You can nd information on conguration les in the Developer Book, section Conguration
184
mxdatetime : Provides the most natural and robust way of dealing with date/time values in Python.
sudo apt-get install python-egenix-mxdatetime
python-dateutil : The dateutil module provides powerful extensions to the standard datetime module, available in Python 2.3+.
sudo apt-get install python-dateutil
psycopg2 : Psycopg is the most popular PostgreSQL adapter for the Python programming language.
sudo apt-get install python-psycopg2
pychart : PyChart is a Python library for creating high quality Encapsulated Postscript, PDF, PNG, or SVG charts.
sudo apt-get install python-pychart
pydot : This module provides a full interface to create, handle, modify and process graphs in Graphvizs dot language.
sudo apt-get install python-pydot
reportlab : The ReportLab Toolkit is the time-proven, ultra-robust, open-source engine for programmatically creating PDF documents and forms the foundation of RML. It also contains a library for creating platform-independent vector graphics. It is a fast, exible, cross-platform solution written in Python.
sudo apt-get install python-reportlab
vobject : VObject simplies the process of parsing and creating iCalendar and vCard objects.
185
The list of available command line parameters can be obtained with the -h command-line switch:
python openerp-server.py -h
If your PostgreSQL server is up and running, you can now run the server using the following command:
openerp-server
If you do not already have a PostgreSQL server up and running, you can read PostgreSQL Server Installation and Conguration (page 181).
You also need to install the following Python libraries, because OpenERP Client uses these packages. To install the required libraries on your Ubuntu system, you can do the following in your favourite shell: gtk : GTK+ is a highly usable, feature-rich toolkit for creating graphical user interfaces which boosts cross-platform compatibility and an easy-to-use API.
sudo apt-get install python-gtk2
glade : Glade is a RAD tool to enable quick & easy development of user interfaces for the GTK+ toolkit and the GNOME desktop environment.
sudo apt-get install python-glade2
matplotlib : matplotlib is a Python 2D plotting library which produces publication quality gures in a variety of hard-copy formats and interactive environments across platforms.
sudo apt-get install python-matplotlib
mxdatetime : Provides the most natural and robust way of dealing with date/time values in Python.
sudo apt-get install python-egenix-mxdatetime
hippocanvas : The Hippo Canvas is a Cairo/GObject/GTK+ based canvas, written in C with support for exible layout, CSS styling, and initial work on animations.
sudo apt-get install python-hippocanvas
PDF Viewer You will also need a PDF viewer (e.g. xpdf, acroread, kpdf). See the Conguring a PDF Viewer (page 188) section.
187
The list of available command line parameters can be obtained with the -h command-line switch:
python openerp-client.py -h
You can now run the client using the following command:
openerp-client
188
The client will try to nd one of these executables (in this order) in your system and open the PDF document with it. PDF For example, if xpdf, kpdf and acroread are the only PDF viewers installed on your system, the OpenERP client will use xpdf for previewing PDF documents.
If you want to use another PDF viewer or if you do not want to use the rst one the client will nd, you have to edit the OpenERP conguration le, normally located in ~/.openerprc. Find the [printer] section and edit the softpath parameter. For example:
[printer] softpath = kpdf
189
$ cd /path/to/openerp-web-6.0.2/lib $ ./populate.sh $ cd ..
This will install all required dependencies in private lib directory, and you do not need to install anything.
The list of available command line parameters can be obtained with the -h command line switch:
python openerp-web.py -h
You can now run the OpenERP Web Client using the following command:
openerp-web
conguration
le
at
190
2. Internet Explorer >= 7.0 3. Safari >= 4.1 4. Google Chrome >= 9.0 5. Opera >= 10.0 Flash Plugin Your browser should have the Flash plugin installed because OpenERP Web Client uses some Flash components. Apply the following command in order to install the Flash plugin on an Ubuntu system:
$ sudo apt-get install flashplugin-nonfree
191
192
193
Stable Versions and Development Versions OpenERP development proceeds in two parallel tracks: stable versions and development versions. New functionality is integrated into the development branch. This branch is more advanced than the stable branch, but it can contain undiscovered and unxed faults. A new development release is made every month or so, and OpenERP has made the code repository available so you can download the very latest revisions if you want. The stable branch is designed for production environments. Here, releases of new functionality are made only about once a year after a long period of testing and validation. Only bug xes are released through the year on the stable branch.
To download OpenERP for Windows, follow these steps: 1. Navigate to the site http://www.openerp.com. 2. Click the Downloads button at the right, then, under Windows Auto-Installer, select All-In-One. 3. Before you can proceed with the download, you will be asked to ll an online form with your contact and company details and information regarding your interest in OpenERP. 4. Once you submit the online form, the All-In-One Windows installer (currently openerp-allinone-setup-6.0.2.exe) becomes available for download. 5. Save the le on your PC - it is quite a substantial size because it downloads everything including the PostgreSQL database system (version 8.3, at the time of writing), so it will take some time.
194
Figure 8.1: Welcome to OpenERP 4. Select components to install You can proceed with the default install type All In One, which will install the OpenERP Server, GTK Desktop Client, Web Client and PostgreSQL Database (version 8.3, at the time of writing). Or, you may customize your installation by selecting only the components you require.
Figure 8.2: Customize component installation 5. Congure PostgreSQL connection The installer will suggest default parameters to complete your PostgreSQL connection conguration. You may accept the defaults, or change it according to your requirement. 6. Select folder for installation By default, OpenERP is installed in C:\Program Files\OpenERP 6.0. To install in a different folder, browse for a different location(folder) in this step. 7. Install The automatic installation of OpenERP begins and you can view its progress.
195
Figure 8.3: PostgreSQL conguration 8. Finish On successful installation of OpenERP, you will get an appropriate conrmation. You can click Finish to close the setup wizard.
196
C:\Program Files\PostgreSQL\9.0\bin>createuser.exe --createdb --username postgres --n Enter password for new role: openpgpwd Enter it again: openpgpwd Shall the new role be a superuser? (y/n) y Password: XXXXXXXXXX
197
* * * * *
1 2 3 4 5
is the command itself asks you the new users password asks you to confirm the new users password new role is superuser or not? asks you the *postgres* users password
Option explanations: --createdb : the new user will be able to create new databases --username postgres : createuser will use the postgres user (superuser) --no-createrole : the new user will not be able to create new users --pwprompt : createuser will ask you the new users password openpg : the new users name. Alternatively, you may specify a different username. openpgpwd : the new users password. Alternatively, you may specify a different password. Password In OpenERP v6, openpg and openpgpwd are the default username and password used during the OpenERP Server installation. If you plan to change these defaults for the server, or have already installed the server with different values, you have to use those user conguration values when you create a PostgreSQL user for OpenERP.
Now use pgAdmin III to create database openerpdemo with owner openpg:
CREATE DATABASE openerpdemo WITH OWNER = openpg ENCODING = UTF8; COMMENT ON DATABASE openerpdemo IS OpenERP Demo DB;
If you have installed the OpenERP Server, you can start it now. If needed, you can override the server conguration by starting the server at a Windows console and specifying command-line options. For more on this, refer the section Customized Conguration (page 201). To change a users password in any Windows version, execute the following:
net user <accountname> <newpassword> e.g. net user postgres postgres
If it is a domain account, just add /DOMAIN at the end. If you want to delete it, just execute:
net user <accountname> /delete
198
Case-Insensitive Search Issue For an installation which needs full UTF8 character support, consider using postgres >= 8.2.x. Using versions prior to this, OpenERP search will not return the expected results for case-insensitive searches, which are used for searching partners, products etc. Example:
SELECT x FROM my_table WHERE bt ilike BT --matches only in 8.2.x
You will need a PostgreSQL server up and running. If it is not the case, you can read the PostgreSQL Server Installation and Conguration (page 197) section.
199
5. Congure PostgreSQL connection The installer will suggest default parameters to complete your PostgreSQL connection conguration. You may accept the defaults, or change it according to your requirement.
PostgreSQL conguration 6. Create shortcuts Select a folder in the Start menu where you would like to create the programs shortcuts.
Create Start menu shortcuts 7. Install The automatic installation of OpenERP Server begins and you can view its progress. 8. Finish On successful installation of OpenERP Server, you will get an appropriate conrmation. You can click Finish to close the setup wizard. End of setup wizard The OpenERP Server installs as a Windows service. This means you do not have to start the server each time you start the computer and it runs without the need of an open user session.
200
The initialization of OpenERP Server provides necessary information for connection to the PostgreSQL database and the choice of data to load. Here is the explanation of used options: -d <db_name> : Name of the database created for OpenERP Server. -r <db_user> : Name of the PostgreSQL user (role). -w <db_password> : Password of the PostgreSQL user. --db_host=<postgresql_server_address> : Address of the server where PostgreSQL is. If you have installed PostgreSQL on the same computer as OpenERP Server, you can enter localhost, else, the IP address or the name of the distant server. --db_port=<port_no> : Port number where PostgreSQL listens. The default is 5432. --stop-after-init : This option stops the server after initialization. --logfile="<logfile>" : specify an alternate logle where all the output of server will be saved. The default is C:\Program Files\OpenERP 6.0\Server\openerp-server.log. Before the execution of this command you have to decide the purpose of the database created in OpenERP. Sample command: CHAPTER 8. OPENERP INSTALLATION ON WINDOWS 201
Here you have to enter the username and password specied in the PostgreSQL connection conguration during server installation. When you execute the initialization command, if you specify a logle, the server runtime output is written to that le, and you will not see any server output in the prompt window. You have only to wait until the prompt comes back. Deciding about the purpose of the database You can initialize the database with OpenERP Server to: 1. Take a look at the system with modules installed and demo data loaded 2. Install a new clean database system (without demo data) 3. Upgrade an existing version
Sample command:
openerp-server.exe -d openerpdemo --stop-after-init -i sale
This command will initialize the OpenERP Server with the module sale and its dependencies, and ll its PostgreSQL database with their related demo data. As can be seen, you must specify the target database for the module installation. To install more than one module, specify a comma-separated module list at the command-line.
202
This will load base modules (and other modules if -i option is used), but will not load its demo data. Sample command usage:
openerp-server.exe -d openerpdemo --stop-after-init --without-demo=all
If you have already initialized the database with demo data loaded, you can create a new database and execute the above command on it.
OpenERP Server 6.0 in the Services list Here, you can dene how the service should act in case of server failure. Access the services properties by double-clicking OpenERP Server 6.0 in the list. Recovery tab to set service failure response The Computer Management logging service offers additional information about the execution of the OpenERP Server, for example, the startup or shutdown information of the service. CHAPTER 8. OPENERP INSTALLATION ON WINDOWS 203
Server information in Windows Logs list OpenERP Server runtime output can be found in the default logle. Given that the server is now running as a Windows service, it does not output any runtime messages. For this, the logle is the only option. Access it from the Start menu, through the View log link in the group of shortcuts for OpenERP Server 6.0. Alternatively, use the path C:\Program Files\OpenERP 6.0\Server\openerp-server.log. OpenERP Server log le You can nd out whether OpenERP Server is running by invoking Windows Task Manager. When you look at the Processes tab, you will see OpenERPServerService.exe and openerp-server.exe, both having SYSTEM as their user (to see these, Show processes from all users must be enabled in the Task Manager).
204
205
Create Start Menu Shortcuts 6. Install The automatic installation of OpenERP Client begins and you can view its progress. 7. Finish On successful installation of OpenERP Client, you will get an appropriate conrmation. Click Finish to close the setup wizard. End of Conguration Wizard
206
OpenERP Public Licence 4. Select folder for installation By default, OpenERP Web is installed in C:\Program Files\OpenERP 6.0\Web. To install in a different folder, browse for a different location(folder) in this step. 5. Create shortcuts Select a folder in the Start menu where you would like to create the programs shortcuts. Create Start Menu Shortcuts 6. Install The automatic installation of OpenERP Web begins and you can view its progress. 7. Finish On successful installation of OpenERP Web, you will get an appropriate conrmation. Click Finish to close the setup wizard.
The Windows service for OpenERP Web Server is also installed and is set up to start the server automatically on system boot.
208
209
User authentication failure You may also face another problem similar to this situation:
Database connection failure In this case, check if the service postgresql-9.0 - PostgreSQL Server 9.0 is running in the Services Manager (Control Panel System and Security Administrative Tools Services). PostgreSQL 9.0 in the Services list You can edit the service conguration to start PostgreSQL as a service on system boot. This is usually the default. Congure PostgreSQL 9.0 service If your PostgreSQL service is running, but you get connection errors, you can restart the service. Restarting the service
210
211
212
Index
A
absences, 64 access, 39 account chart, 37 account types, 26 accountant, 55 accounts conguring, 26 allocation cost, 62, 66 analytic chart of accounts, 61 Analytic Accounts, 59 restore, 38
E
export stock management, 130
F
Flow, 6 forecasts, 113
I
import stock management, 130 Installation OpenERP All-In-One (Windows), 193 OpenERP Client (Linux), 186 OpenERP Client (Windows), 205 OpenERP Server (Linux), 184 OpenERP Server (Windows), 199 OpenERP Web (Linux), 189 OpenERP Web (Windows), 207 PostgreSQL, 181 PostgreSQL (Windows), 196 Windows installation quirks, 209 installation administrator, 194 Windows (all-in-one), 194 invoicing repair, 165
B
backup database, 38 bill of materials, 139 phantom, 146 BoM multi-level, 144 revisions, 143 BoM, substitute products, 177
C
category partner, 31 product, 34 chart of accounts, 37 analytic, 61 contact partner, 31 cost allocation, 62, 66
J
journals conguring, 29
L
location structure, 36 Logistics, 6, 69
D
database backup, 38 drop, 38 duplicate, 39
M
Main Company conguring, 30
Manufacturing, 6, 137 Master Procurement Schedule, 109 Master Production Schedule, 109 Module mrp_jit, 95 Sale, 95 module account, 25, 43 account_analytic_default, 51 delivery, 55 hr_timesheet_invoice, 59 mrp, 25, 139 mrp_jit, 45, 98, 150 mrp_repair, 161 product, 25 product_extended, 58 product_margin, 59 purchase, 25, 49 purchase_analytic_analysis, 51 purchase_analytic_plans, 51, 60 purchase_tender, 56 report_intrastat, 131 sale, 25 sale_journal, 124 sale_supplier_direct_delivery, 99 stock, 25, 73 stock_location, 131 stock_planning, 113 warning, 50 MPS, 109 multi-level BoM, 144
P
partner, 31 category, 31 contact, 31 PDF viewer, 188 phantom bill of materials, 146 plan production, 113 PostgreSQL Installation, 181 Installation (Windows), 196 setup a database, 181 setup a database (Windows), 197 setup a user, 181 setup a user (Windows), 197 product, 34 category, 34 production management, 137 properties dening, 28 Purchase, 6 purchase tender, 56 Purchasing, 47
Q
quotation, 152
R
Real Case, 18 rent, 131 repair invoicing, 165
O
OpenERP All-In-One Installation (Windows), 193 OpenERP Client Conguring a PDF viewer, 188 Installation (Linux), 186 Installation (Windows), 205 OpenERP Server Installation (Linux), 184 Installation (Windows), 199 OpenERP versions, 193 OpenERP Web Installation (Linux), 189 Installation (Windows), 207
S
Sales, 6 sales order, 152 semi-nished product, 152 Stock Double-Entry, 73 Inventory operation, 74 Location, 79 Location types, 79 Negative, 97 Stock check, 74
T
tender, 56 traceability downstream, 115 upstream, 115 traceability (stock), 118
W
work center, cycle, 148