在库存移动中,我想按特定日期和分组按产品标识、位置目的标识和合计产品计量单位数量进行筛选。你知道吗
@api.multi
def compute_report(self):
record_move= self.env['stock.move'].search([('date','>=',self.start_date)]).
.read_group([('date','>=',self.start_date)],[sum('product_uom_quantity')],['product_id','location_dest_id'])
return {'record_move': record_move}
I want to groupby all product_id and location_dest_id since i have plenty articles
然后将所有产品标识和位置目标标识读入列表
相关问题 更多 >
编程相关推荐