Make Barcode functionality for Odoo 10 Community Version - odoo

I want to make a barcode in Inventory picking screen since it's not supported in Odoo 10 Community version.
What do I have to search for, and learn?. I saw the barcode module, what the purpose of it and how it can be useful in my case?
In addition I want to make another step in receiving products which is Put Away, this step is to put the product on the shelf. To achieve this the warehouse user shall scan the product barcode and the scan location barcode, after that the system should automatically put that product on scanned location.
Finally please give me any reference or hint that I can start with. And if there is a similar module built before.
Thanks.

The module has been made and published for free.
Download

Related

What records in my PrestaShop database do I need to remove to clean up the data

We have an eCommerce Prestashop (ver 1.7.2) shop. Our initial testing is okay and our shop is ready for deployment. We need to remove the order records to have a clean version of the shop. What table records do we need to remove?
Search in your Modules Catalog for cleaner, the full name is PrestaShop Cleaner.
Install it and give it a go.
Official statement:
PrestaShop Cleaner can only be managed from the back office. It allows you to roughly clean your store by deleting your whole catalog, orders, and customers.
For example, this module allows you to suppress all demo data in one go. But this module must be used carefully: once you delete it all, there is no possible rollback. Everything is removed for good.

Partial document update in solr

I m using apache solr , I want to do partial update of document in solr
I am new to Apachesolr and i m using windows operating system please help me and give suitable example for this
we need to update a single field in the index and we don’t want to send the whole document. Lets say, that we need to update product price, which is updated a few times a day. We don’t want to index the whole document again and again,
Also:
Look at http://solr.pl/en/2012/07/09/solr-4-0-partial-documents-update/
Interestingly the site above uses the same product price example that you are trying to solve.
Note that your entire document(all fields) needs to be stored for this to happen.

Upgrade nopcommerce 2.8 to 3.10

Hello,
I am new in NopCommerce. I have change in Nop.Core, Nop.Data and Nop.Services. I have change also in some controller, Model and view of Nop.web.
If i wish to upgrade nopcommerce version from 2.8 to 3.10 then, which way is easy and best.
1) I backup my file and get update. Once update is finished then, may i replace only those part which i have updated and differ from original code? May i add new method which is in my backup file but not in original code?
2) Or May i have to create new plugin or other way.
[For example: I have change in product table and add new fields like size, age, color.]
Please let me know your valuable feedback.
Thanks
There is no straight right or wrong answer. I am suggesting on the approach i took. Assuming you have code changes and database changes on top of base nop 2.80.
Ground Work
Write down a detailed modifications list. (Additional functions you have added on top of 2.80.)
Check with 3.10 if any of your modification is supported out of the box.
My modification count was 250 (very detailed up to estimation).
Approach
Upgrade 2.80 db to 3.10 db.
Modify 3.10 code to support new features of 2.80.
DB Upgrade
Find a good database diff tool. ex: SQL Compare.
Restore your production (2.80) DB to your dev pc and install nop 3.10 db into your dev pc as well.
Compare both DB table by table. Basically, you are going to upgrade 2.80 db to 3.10 db by comparing 3.10 schema.
Alter/Delete/Add new columns in 2.80 by comparing 3.10.
Create Store information (Store table). This is new feature in 3.10 and StoreID is needed for most other tables.
Update customer data to match 3.10 schema.
Update products information. ProductVariant table is now merged with Product table. So need to update product table.
Update Order details. OrderVariant is now OrderItem. So move the data.
Move other tables.
I used to create single SQL Script which,
Restores Production DB from a backup file.
Script block for each table which, upgrades each tables and populates data.
This gives you flexibility of run and run and again run the script if there is any error or even this is helpful during scripting.
In addition to this, if you are merging 2 or more stores in to one,
Add all store information in step 5.
Now create a separate script for each store from this point.
You need to find different sequence number for OrderId & Customer id. Can't be same.
When you add 2nd or more store, check for existing customer before adding.
Check 01
Now take a fresh 3.10 code base and run against your migrated db. All should work well if you have done migration properly.
Code Upgrade
There is significant changes to be done on code simple because there is noProductVariant table. So all the custom logic needs to be re written.
Main issue is, invoicing. If you have more than one store, there is no email setting per store basis. So have to custom modify that too.
A good approach would be,
Do all the customer side eCommerce fist.
Then do the admin side.
If customer and admin in same functionality, do together. example, custom modification on order placing work flow.
There will not be big modification needed for plugins.
Check 02
Run the migrated DB with Updated 3.10 code base. All should work.
On Big Day
Backup Production DB and Production Code base.
Run the Upgrade scripts and Replace new code base.
No 3rd Step, since you have done all the hard work before this.
Ok, if you screw up, then roll back.
Things to Note
I learned these by testing. thank god, i found them before actual migration.
There is no detailed instructions at the time we were migrating on how to setup a complete multi-store solution in nop commerce side. There is a instruction here on how to setup nop commerce in production server. but i is not covering all the aspects.
We were using VPS Server to host our platform. If you are using VPS, please beware that SNI is need to be used if you set up multi-store properly. Only IIS 8 and above supports SNI. Which means you need Windows 2012 Server. See here and here for more on SNI
We were using Pleask to manage the server. So set up master domain as primary and all other stores as alias. In IIS side, RDP in to VPS and Set up SSL for each domain using SNI feature of IIS8
Down side of SNI, it is not supported by all old browsers. See here.
Limitations
If you are using Pleask, then email wont work very well. Since email box will be created only for master domains and all other alias will share the same email accounts. So you can send a reply from alias email. unfortunately, its out of nop commerce development scope.
i haven't found a solution for this. working on this.
I'd recommend doing the database incrementally. According to the upgrade guide, you must apply the upgrade scripts one at a time, just read through the guide and have at it.

Updating chart of accounts list in OpenERP

I want to install new chart of accounts. I managed to install it without errors, but it doesn't appear in chart of accounts list to choose from. Do I need to add a link to my chart of accounts in account module somewhere for it to recognize or do I need something else?
I can see that module from second chart of accounts list. What I mean is first when I get to choose from chart of accounts lists which one I want to use, I can't see my chart of accounts, but if I choose any other chart of accounts and get to second window, where I have to choose company, set taxes etc. I can then see second chart of accounts list, which shows installed chart of accounts list. And then I see the one I chose and also my chart of accounts. And then if I choose my chart of accounts, I get error that tax names should be unique. I think that is because previous chart of accounts was generate. If I close that window, I can see in configuration that both chart of accounts were generated.
If you want your module to appear in the list of available Chart of Accounts on the first Accounting wizard, make sure you have properly set the module category to Localization/Account Charts in the manifest (__openerp__.py).
It's a very good idea to get inspiration from existing Charts of Accounts, for example l10n_be. Have a look at an existing manifest to see the exact syntax/spelling to use.
However it's not clear that this will solve your problem, because this wizard does not do what you think it does. There are 2 main accounting configuration wizards in the 6.0/6.1 OpenERP series:
"Install your Chart of Accounts": this first wizard has 2 purposes: install an appropriate Chart of Account module, and generate the fiscal year and fiscal periods for the selected company. It will let you install any of the modules that belong to the Localization/Account Charts category, and will let you configure the fiscal periods for one of the companies that have no Chart of Accounts installed yet. This wizard does not actually configure or create a Chart of Accounts, it only install a module and the templates that come with it.
"Generate Chart of Accounts from a Chart Template": this wizard finishes the job started by the first one, by actually creating a full Chart of Accounts for the selected company, using one of the installed templates (coming from installed localization modules). You'll see your Chart of Accounts available in this wizard as soon as your module is installed. This wizard should only let you configure a Chart of Accounts for companies that don't have one yet, because you cannot do that twice for the same company.
If you get an error about duplicate taxes while running the second wizard, it should not be directly related to running the first wizard or not. Perhaps you really have defined several Tax Templates with the same name in your Chart of Accounts, or perhaps you have created taxes manually for the same company, and they now conflict with the ones in your Chart of Accounts? There could be many different reasons, it's difficult to tell without more info.
In any case, double-check your module using l10n_be as an example, and make sure you read the official documentation for writing Chart of Accounts modules, if you did not read it yet.
And when you don't understand something, remember that OpenERP is open source, so use the Source, Luke :-)
The source code of the first wizard is here and the one for the second wizard is there. A look at the source would answer your current question, and probably your future questions too :-)
Your chart probably doesn't appear during the initial configuration because your module hasn't been installed yet. You might be able to skip the configuration of a new database, install your module, and then run the configuration.
Another option might be to install the minimal or generic chart of accounts during configuration. Is there a "None" option? After that, you can install your own module that includes all the extra accounts and taxes that your company uses. I think that's what we did, but it was back in version 5, so things may work slightly differently now.
Finally managed to solve this problem. When I changed taxes names to be unique (payable and receivable VAT names were the same) and changed close_method to unreconciled on some account types, because openerp requires to use it, now I managed to successfully install it and I can see it on chart of accounts list.

ScanSnap Integration

I am currently trying to figure out how to integrate with the fujitsu scansnap scanner and have found no details from fujitsu on how the fujitsu scansnap manager calls your application and send the file to your application.
1.) do the pass a parameter with the filename when they launch your process?
2.) do you just have to look in the target directory?
If anyone has information regarding this type of integration or knows where to get the "white paper" information, I would really appreciate it.
Thanks.
You have 2 options, the old XP and model right after that (the larger multi paper models) would pass the temp file their file was saved to as the first parameter after the exe name on a custom program -- otherwise yes you can just scan the scan folder, make sure to move the file after it's done scanning so you don't view it again.