Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

-1

how to calculate product qty betwen two dates ?

By
Qamar Soft
on 6/30/15, 7:13 AM 443 views

I would like to calculate product qty using a product.product funciton _product_available to calculate the qty between two date

1
Tom
On 6/30/15, 1:00 PM

Hi, I think you can try after code: 

start_date = datetime.datetime.strptime(date_start, '%Y-%m-%d')

end_date = datetime.datetime.strptime(date_end, '%Y-%m-%d')

ctx = { 'to_date': end_date , 'from_date': start_date }

qty= self.pool.get('product.product').browse(cr, uid, product_id, ctx).qty_available


how to specify location_from and location_dest of movement ?

Qamar Soft
on 9/11/15, 7:53 AM

vvhat is the mean?

On Friday, September 11, 2015, Rachid <m3asmi-hotmail.com@mail.odoo.com> wrote:

how to specify location_from and location_dest of movement ?

--
Rachid
Sent by Odoo S.A. using Odoo access your messages


--
Name : Vũ Minh Quân
Phone : 090 2077220
Skype : quanvm00

Tom
on 9/11/15, 7:55 AM

I mean can we know the qty of product come from a location to a location in a specific date or hours

Qamar Soft
on 9/12/15, 6:08 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/30/15, 7:13 AM
Seen: 443 times
Last updated: 9/12/15, 8:25 AM