2016-01-05 202 views
2

我在Odoo 9社区版中遇到了一个问题,我将数据库字段的小数精度更改为3,如下所述 enter image description here 还有会计/货币中的四舍五入。一切都只能在这两个接口能正常工作:odoo中的小数精度

1:销售订单界面

enter image description here

2:沽盘

enter image description here

的好处是,在发票,应有尽有是好的:

1:客户发票

enter image description here

2:发票

enter image description here

有没有解决这个问题?

回答

1

在Odoo 9中,与金额相关的所有字段都将字段类型更改为“货币”。他们中的大多数使用widget =“货币”格式化。为了使其按照货币设置工作,需要“currency_id”字段。因此,“currency_id”字段必须包含在视图中。例如,在sale.order.form视图中

. . . 
<tree string="Sales Order Lines" editable="bottom" decoration-info="invoice_status=='to invoice'"> 
    . . . 
    <field name="price_subtotal" widget="monetary"/> 
    <field name="currency_id" invisible="1"/>   <!-- Add this line --> 
    . . . 
</tree> 

小计将根据销售订单的货币格式化。

1

你去设置 - >技术 - >数据库结构 - >小数精度然后改变你想要的!

+0

这就是我在第一次截图中所做的 –