【问题标题】:How to get the quantity of products in specified date in odoo 10如何在odoo 10中获取指定日期的产品数量
【发布时间】:2018-04-22 11:28:39
【问题描述】:

我想在 odoo 10 中创建包含以下列的表:quantity_in_the_first_day_of_month、input_quantity、output_quantity、quantity_in_the_last_day_of_the_month。

但我不知道如何获取指定日期的数量

【问题讨论】:

标签: python python-3.x python-2.7 odoo odoo-10


【解决方案1】:

您可以加入销售订单和销售订单行以获得指定日期。

选择 总和(sol.product_uom_qty) 从 sale_order s,sale_order_line 溶胶 在哪里 sol.order_id=s.id 和 DATE(s.date_order) = '2018-01-01'

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-12-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多