Importing QoH in Odoo 8 - import

Documentation for the new version of Odoo (OpenERP) is nearly non-existent. Apparently, the process for importing Quantity on Hand for products has changed, and I can't find anything that describes the new method. Anyone know how to import current stock levels into Odoo 8? In version 7, you created an inventory count record, then imported all your product quantities using the reference field from the manually created count record. This doesn't seem to work in v8.

It's finally solved, simply follow the step
Step – 1 ;
1-> select product in warehouse module (open in list view).
2-> select the product which you want to update the inventory .
3-> click on more button and export column
i-> product name and any other one if you needed .
you have file with name of product.temlate.csv .
4-> Add a column qty and enter the quantity of product .
Step – 2;
1-> select inventory adjustment in warehouse module .
2-> if you already have any created inventory then go to 3rd point if not then create a inventory and feel the detail . and select all product option in Inventory of - :
3-> now again click on inventory adjustment and select the inventory.
4-> click on more and export the following column
Inventories/location
Inventories/product
Invevtories/product Unit of Measure .
Now you have one more file with name stock.inventory.csv
Step -3 ->
1-> now add two column on stock.inventory.csv
First one is name and second is line_ids/product_qty.
2-> delete the value of column line_ids/product_id/id of stock.inventory.csv file .
now copy the values of id column from product.template.csv and paste into the line_ids/product_id/id column of stock.inventory.csv .
3-> now copy the values of qty column from product.template.csv and paste into the line_ids/product_qty column of stock.inventory.csv .
4-> enter any value in name column for your reference .
Step – 4-
make sure your file look like this file:-
Click on following link to see file
This is a sample of the succesfully imported data
http://bit.ly/odoocsv
AFTER IMPORTING DONT FORGET START INVENTORY

I found that I had to do the import as before, but afterwards, I had to change the state to 'confirm' in the database manually, something like:
sudo -u postgres psql -c "UPDATE stock_inventory SET state = 'confirm' WHERE name like 'Inventory1234'" database_name
Otherwise, when I would press Start Inventory, the quantities would be lost.

What I figured out is that you have to have all of your stock locations set up first, so that you can import the quantity on hand per location in Odoo 8. Set up your location hierarchy, then export the IDs. Merge these with the product variant (product.template, not product.product) IDs. I used FileMaker Pro to do this. Next, create your inventory adjustment record and export the name and ID fields. Use these on the first line only of your CSV file that contains the product quantity/location records to import.
If it helps, these are the column headers that I used in the import screen:
"Inventories / Location / External ID"
"Inventories / Checked Quantity"
"Inventories / Product Unit of Measure"
"Inventories / Product / Database ID"
"Inventories / Product Name"
Hopefully, that will help someone out. My notes are a couple months old, so I hope they are correct!

Related

Tableau -Calculated field for matching values based on criteria in a different column

I am trying to create a calculated field based on three conditions .
I have two columns names " source system names" which has only two values 302 and 202 only and other column name "unique ID have different numerical values .
I want to create a calculated field which will display the data as shown in "calculated field display " column. I need some help to write a logic on this .I have not done something like this before in tableau .Can someone help me out .I have around 0.5 million rows so need a logic that would work for this size of data .
Please refer attach image for a clear picture of what iam doing .
202 RECORD ONLY - when unique ID does not exists in row having source system as 302 .(example row 1,3 and 4)
302 RECORD ONLY - When unique ID does not exists in row having source system as 202.(example row 9,11 and 12)
EXISTS in both 302 and 202 - when unique ID is same for source system names 302 and 202 .(2 and 10 , 5 and 8 and 6 and 7)
Kindly help me to create a calculated field with this logic .
I tried CASE and IF function ,but i was not able to do it .
for easy understanding refer the 4th column in the attached imageenter image description here
If the 'Source System Names' has only 2 values you could create the following calculations to do what you want (assuming all the fields are strings, if they're integers this will still work with some simple changes):
Max: Source System Name
{FIXED [Unique ID]: MAX([Source System Names])}
Min: Source System Name
{FIXED [Unique ID]: MIN([Source System Names])}
Calculated Field Display
IF [Min: Source System Name] != [Max: Source System Name]
THEN 'Exists in Both 302 and 202'
ELSEIF [Max: Source System Name] = '202'
THEN 'Exists in 202'
ELSEIF [Max: Source System Name] = '302'
THEN 'Exists in 302'
ELSE
NULL
END
Hopefully that helps!

Magento : Add Coupon Code at sales order grid

I want to add coupon code in sales order grid . As we know Sales order gird build from sales_flat_order_grid table
Coupon_code column is exist in sales_flat_order table not sales_flat_order_grid table.
When I add coupon_code at sales order grid but when i search the coupon code with status column then got this error : Column 'status' in where clause is ambiguous
Note : I am working on existing project not new project
Magento version : 1.7.02
Can you please provid me solution
Thanks
You need to add a filter_index to your addColumn method to specify which table you want to search for status.
I assume the problem is that status exists in both sales_flat_order_grid and sales_flat_order.
There are loads of links on this around the place. Try here or here amongst others.

Filemaker 12 -- display one value, store another

I'm building a database in FileMaker 12 that will, among other things, keep a list of jobs (indicated by numeric ID) and the employees who had billable time for that job.
Given three tables:
Employee ( empName, empID, salary, ... )
JobHours ( empID, jobID, hrsWorked, ... , refID)
JobCost ( jobID, expenses, profit, ... , refID)
Where:
Employee is my personnel roster matching names to numeric employee IDs and stats (salary, et al) ;
JobHours is a list of employee participation -- whenever an employee spends time on a job, this table has a line that shows their ID, the job ID, hours worked, and a few other things;
JobCost is a daily record of jobs. One entry in this table refers to the activity for a single job on a single day. Additionally, each entry gets a system generated unique ID (since neither jobID nor date is unique) to relate to JobHours (resulting in a list of who worked on a particular job on a particular day).
I have a form showing records from JobCost. For each record, I can see in a portal, showing records from JobHours, who worked on that job on that day.
Now, the issue.
In my portal, I want to have a drop-down list of employee names pulled from a value list to create records in JobHours with the following criteria:
1) I need it to be a drop-down rather than a pop-up so it will respond to auto-fill from the keyboard. A drop-down will show the secondary value (employee name) from a value list while dropped down, and will respond properly to keyboard autocomplete on the secondary value, but once you've made your selection, it only displays the primary value (employee ID).
2) I need it to display names, not IDs, at all times. The pop-up does this perfectly. However, it doesn't seem to respond to the keyboard for typing autocompletes.
3) I need to store the numeric ID rather than the name.
I know how to satisfy any two of these criteria at once, but that's all. The whole database is working beautifully otherwise. Is this behavior possible?
One common technique is to use two fields, one directly on top of the other.
On the bottom, put your JobHours::EmpID field. Set it up as the drop-down list with the value list that you've specified.
On top of the JobHours::EmpID field put the related Employee::EmpName field. Set the field so that it cannot be entered in browse or find mode.
Now your users will see the Employee Name, but when they click that click will go through the top field and into the Employee ID field where they will choose the name from the value list.
pft's solution is one that I have long used, but I do still find it inelegant because the user still sees an existing id number in the field when changing the value.
If the type-ahead is important, I would use the popup menu. Once the menu has been activated either by tabbing into it or by clicking into it, the user is able to type from the keyboard and the selection will change based on what's entered.
I came to this thread looking for a solution to this same issue (allowing the user to pick from a list, show their choice, but store a related value instead). For example, choose a plant species name from a dropdown, show the plant species name in the dropdown field, but have it store the taxonomic serial number (TSN; which is more likely to stay the same over the years). This is easy to do in MS Access, but took a litlte more messing around to do it in FMP12.
How I solved it:
I created two fields in the table that would be storing the values: Plant_TSN and Plant_SciName. A relationship must exist between the values in these two fields. In my case, I store a SciName for each TSN in a lookup table. I then created two fields in my layout, one for each new field.
For the value you wish to store (ex. Plant_TSN):
Make the corresponding layout field a dropdown and include the show/hide arrow. Edit the value list you will populate the dropdown with to show the second (reader friendly) column but store the first column value. In the layout shrink the field to only show the arrow.
For the field you wish the user to see (ex. Plant_SciName):
make the other layout field a Edit Box and prevent field entry in either Browse or Find mode. But it up against the dropdown arrow created in the previous step to make what looks like one field.
Finally, back in the first field (arrow-only drop down) write a script to push the user friendly number (Plant_SciName) to the edit box when the user-ugly (Plant_TSN) value is picked in the drop down. I used the OnObjectSave script trigger of the dropdown formatted field. Script should be something along the lines of 1) Freeze window, 2) Go to Related Record (based on relationship in lookup table 3) Set Field (i.e. the edit box) and 4) GotoLayout[original] to offset the Freeze.
Probably not an entirely clear explanation, but I bet you will get it on your third read through! I would have posted a screenshot, but I apparently need 10 "reputation points".
Cheers.

product old price in virtuemart

I am using virtuemart for my application made by joomla 1.5 .
Now in my product list I am getting the old price and new price and also display how much I can save for that product.
But I am able to find out where these old and new price have been stored in database. Could you please guide me in which table that old price is stored?
If I am getting your question correct then you want the base price and discount price(override).If yes then you can get the base price(old price) in the jos_vm_product_price table the column name is product_price and for the new price(override) is in the jos_vm_product_discount table and the column name is amount.See if it helps.

Filemaker Pro 11 Script - Add fields dynamically?

So we use FMP11 to do inventory management. I do price updates to our products 3 times a week and it would be nice to store our past cost values into a separate table for historical pricing. I know how I would go about doing most of it, but is it possible to create a new field that is labeled as today's date on the fly? So my headers would be labeled with that days date and the old pricing value from my other fields would be inserted.
It is a bad idea to create new fields for the purpose you're describing. Create additional records instead, and do your report going from top to bottom instead of left to right.
That said, if you want to do it, you can using FileMaker Server Advanced with JDBC and the ALTER TABLE command.
Create an new table (e.g. ArchivePricing) to hold the values you want to reference at a later date (e.g. ChangeDate, Price, Item, ItemID, etc.).
Create a new field in the current table called z|newprice - use this to type in your new pricing (you might do this on a list layout so you can easily change a bunch of prices).
Create a button that triggers a script that:
creates a new record in the new ArchivePricing table and inserts the ItemID (thus creating a link to the original table) - this can be done using script parameters or setting a variable)... the script continues.
uses the "set field" script step to insert info to this new record in the ArchivePricing table.
uses the Get (CurrentDate) function to insert the date into the ChangeDate field (thus capturing the date the change was made).
Before the script finishes be sure to use "set field" back in the original table to move the value in z|newprice field into your normal Price field. Do this at the end of the script and then commit record.