0

openerp では、金銭的価値 (項目の合計) は以下のように表示されます

ここに画像の説明を入力

どこでもRM100のように表示することは可能ですか?xml の実際の行は以下のとおりです。

<field name="amount_untaxed" widget='monetary' options="{'currency_field': 'currency_id'}" />

web/xml/base.xml の下で編集する手がかりを得ました

<t t-name="FieldMonetary" t-extend="FieldChar">
    <t t-jquery="t:first" t-operation="before">
        <t t-if="widget.get('currency_info') and widget.get('currency_info').position === 'before'">
            <t t-esc="widget.get('currency_info').symbol"/>
        </t>
    </t>
    <t t-jquery="t:last" t-operation="after">
        <t t-if="widget.get('currency_info') and widget.get('currency_info').position === 'after'">
            <t t-esc="widget.get('currency_info').symbol"/>
        </t>
    </t>
</t>

しかし、それを行う方法がわかりません。これを行う方法のアイデアはありますか?

4

1 に答える 1

0

JavaScript やコードを編集する必要はありません。財務管理者グループを管理者に渡してから、Invoicing > Configuration > Miscellaneous > Currencies. 次に、通貨レコードを選択します。と が表示SymbolされSymbol Positionます。symbol positionをに変更before amount

于 2013-10-04T05:02:35.443 に答える