2016-01-05 203 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

這就是我在第一次截圖中所做的 –