Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
4380 Ansichten

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

Avatar
Verwerfen
Beste Antwort

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


Avatar
Verwerfen
Autor

how to specify location_from and location_dest of movement ?

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

Autor

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

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Aug. 19
2771
3
Aug. 24
2104
0
Jan. 22
2374
0
Aug. 21
2210
1
März 16
6854