【问题标题】:how to checkout sale price of product in postgresql database for openerp 7如何在 openerp 7 的 postgresql 数据库中查看产品的销售价格
【发布时间】:2015-02-19 10:18:29
【问题描述】:

我想知道以下两件事:

  1. 查找产品成本/销售价格所在的 OpenERP 表。我查看了 product_product 和 product_pricelist 表,但仍然找不到价格。

  2. 找到后,我会在电子表格上列出所有这些产品的新价格,我需要编写什么 SQL 语句才能用新价格更改旧价格。

【问题讨论】:

  • 我找到了,它在product_template....谢谢大家

标签: postgresql openerp openerp-7 psql openerp-8


【解决方案1】:

1)。可以看到product_template模型中的cost price和sales price字段,即product_product(product_tmpl_id)中的many2one。

2)。要更新销售价格,请使用此 sql 查询,

update product_template set list_price = your_price where id in ( 从 product_product 中选择 product_tmpl_id 其中 default_code = 'default_code_of_product')

成本价相同,只是更改字段名称,使用“standard_price”。

售价 = list_price 和 成本价 = standard_price

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-11-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多