GNUCASH: Can not import stock price from csv to gnucash stock account - stock

I am trying to import some stock trade transactions into GNUCASH stock account. I used a template I export from GNUCASH. Everything loaded correctly except the price. It seems that the system is calculating the shares incorrectly.
https://i.stack.imgur.com/xfDPB.jpg
https://i.stack.imgur.com/GmvOQ.jpg
https://i.stack.imgur.com/ANyzv.jpg

I had the same issue. It seems to be a bug.
There is a report and workaround here: https://bugs.gnucash.org/show_bug.cgi?id=793306

Related

Balance is showing 00.0 when I imported the entries through a sql query in a Journal Entry. oddo10

What I have done is, I entered Opening Balances in journal Entry through a sql query mentioned below.
insert into account_move_line (move_id,journal_id, company_id, account_id, operating_unit_id, partner_id, name, currency_id, debit, credit, date_maturity) values(18467,79,1,3,10,11091,'TN',21,25538.71,0,'2018-03-31');
Both debit and Credit are showing. Balance being a compute field should reflect automatically but its showing 00.0. Any Idea where I have been wrong in this case?
You have two options:
Import data using the traditional import mechanic, with a .csv file in a module data folder or charging your .csv file directly into screen.
After SQL insert, recomputing in a console the field needed, in this answer you can see how to do that.
I hope this answer can be helful for you.

Automated action to update the qty in hand instead of forecast qty

We are working on several Sales Platform (e.g. Prime Minister, Ebay) that generate an excel to import in our Odoo 11 SAAS server.
As there are hundred of orders, we created an automated action to update the quote to sale after importing from excel.
At that point I am able to search the action for confirming the sales in a odoo studio video.
How to update the qty on hand or change the done qty for the product and delivery?
We searched for days and still didn't get a clear answer.
As you confirmed the sale order by your program, forecasted qty will be decreased. Now on hand qty will be updated when you will process the delivery orders for that.

Google Sheet import historical prices

I was using Google finance to get historical stock price but similar to Yahoo it seems to have stopped working earlier this month.
So now I just want to import from a website. I am using the following import function in my google sheet to get the last 3 months of price history for stocks from the nasdaq website. But now I want more data. Their website offers 10 years of data. Can anyone help me alter my function to add a timeframe?
=IMPORTHTML("http://www.nasdaq.com/symbol/"&C5&"/historical","table")
Try mixing your query with import range function as also suggested in this thread.
You can add conditionType or conditionValue with date values in your query.
See Collection: spreadsheets for more information.

Only show in stock products OpenERP

When I open the location structure of the warehouse and check the current inventory of a particular location, it shows me all products (even when stock is 0).
Is there a way to hide the products that are not in stock in that particular location (or remove them from being able to show in that location)?
To achieve this functionality, you have to customize addons side code of stock and product,
You have to implement funt_search method in qty_available function of product, to search product based on codition.
And in the wizard you have to pass domain, of qty_avalable > 0 at wizard,.
For refrence you can see in openerp latest trunk stock module code.
Hope this help

Calculate available inventory in OpenERP

I am developing a custom module for OpenERP 7 that will track hardware installed in various venues. I have the total stock levels recorded in the Warehouse module, but I want to be able to calculate and display amount of each product that is available and the amount that is currently deployed. I'm having trouble figuring out how to do this. I have been looking at this rent module and they seem to do something with stock picking and workflows, but I'm new to OpenERP and not really sure how that works.
The other way I was thinking of was to loop through the deployments and simply calculate the amount of each item, and use functional fields to display it, but I'm not sure if that would even work, or how to do it without hard-coding all the various items.
Have a look at product.py in the stock module, specifically the get_product_available method. This allows you to pack various filter parameters into the context and then it calculates and returns stock as the net of inbound and outbound stock moves.
This method also gets used in the functional fields qty_available, virtual_available, incoming_qty and outgoing_qty. There is reasonably good explanations in the help comments in the module.
In OpenERP, something is in your stock when there's a stock move (object stock.move) with that product to your physical location as destination location, defined on Warehouse object for "Inventory Location" field. Let's say you have recorded 2 moves:
Move 1
Source Location: Supplier
Destination Location: Stock
Qty: 2
Move 2
Source Location: Stock
Destination Location: Deployed Products
Qty: 1
If you open your products list you'll see that you have 1qty of your product available. OpenERP sums all the moves for that product to and from your Stock location. So if you have no other specific needs, recording moves to some sort "Deployed Products" location should be enough.