Issue 10598

Title
Add monetary field
Priority
feature
Status
resolved
Superseder
Set full locale definition (issue 10595)
Nosy list
albertca, ced, reviewbot, roundup-bot, yangoon
Assigned to
ced
Keywords
review

Created on 2021-07-21.16:59:50 by ced, last changed 1 month ago by roundup-bot.

Messages

New changeset e9a6b13de8d1 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/tryton-env/rev/e9a6b13de8d1
New changeset 3b129cae8778 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/tryton/rev/3b129cae8778
New changeset fa7a3ebd2874 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/sao/rev/fa7a3ebd2874
New changeset 969606b94f02 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/stock_secondary_unit/rev/969606b94f02
New changeset aac84d809a1f by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/stock/rev/aac84d809a1f
New changeset 44e620bac83e by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/sale_subscription/rev/44e620bac83e
New changeset c58fd3121617 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/sale_secondary_unit/rev/c58fd3121617
New changeset 02190f560aa7 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/sale_promotion/rev/02190f560aa7
New changeset 07bfdcf3342c by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/sale_opportunity/rev/07bfdcf3342c
New changeset 283603a3f199 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/sale_gift_card/rev/283603a3f199
New changeset 9d33799d11c2 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/sale_extra/rev/9d33799d11c2
New changeset 01a14d105ad2 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/sale_discount/rev/01a14d105ad2
New changeset abf945c75a26 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/sale_complaint/rev/abf945c75a26
New changeset 9ccb932d33a3 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/sale_advance_payment/rev/9ccb932d33a3
New changeset 67261751bbc3 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/sale/rev/67261751bbc3
New changeset a3ea6dc49608 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/purchase_secondary_unit/rev/a3ea6dc49608
New changeset 7907501bc33f by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/purchase_requisition/rev/7907501bc33f
New changeset 17f38278e82f by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/purchase_request_quotation/rev/17f38278e82f
New changeset 0d680014600a by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/purchase/rev/0d680014600a
New changeset dcbe67824a63 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/project_revenue/rev/dcbe67824a63
New changeset 900420d1976e by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/project_invoice/rev/900420d1976e
New changeset d657d097b796 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/currency/rev/d657d097b796
New changeset d74106c16bc5 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/commission/rev/d74106c16bc5
New changeset 1bdff2fd08a5 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/carrier_weight/rev/1bdff2fd08a5
New changeset 246cb846f264 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/analytic_account/rev/246cb846f264
New changeset ddcef08f5934 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/account_statement_rule/rev/ddcef08f5934
New changeset 078490d3ad08 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/account_statement/rev/078490d3ad08
New changeset aabe2467c0b3 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/account_payment_stripe/rev/aabe2467c0b3
New changeset c6cedab36b43 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/account_payment_braintree/rev/c6cedab36b43
New changeset 018a8ce3fb4e by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/account_payment/rev/018a8ce3fb4e
New changeset bc9a07071482 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/account_invoice_defer/rev/bc9a07071482
New changeset b9adbdc32c5a by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/account_invoice/rev/b9adbdc32c5a
New changeset 7b6c4ccf0d52 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/account_eu/rev/7b6c4ccf0d52
New changeset 914779811f6d by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/account_es/rev/914779811f6d
New changeset f2be3f0d48ec by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/account_dunning_fee/rev/f2be3f0d48ec
New changeset 6d04b7396408 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/account_dunning/rev/6d04b7396408
New changeset 6e4ff2b41d73 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/account_deposit/rev/6e4ff2b41d73
New changeset 71b2bc457043 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/account_be/rev/71b2bc457043
New changeset 15dce9e3312e by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/account_asset/rev/15dce9e3312e
New changeset 5e943f95c348 by Cédric Krier in branch 'default':
Add monetary field
https://hg.tryton.org/modules/account/rev/5e943f95c348
Author: [hidden] (yangoon) Tryton translator
Date: 2021-07-22.11:09:52

AFAIS the current proposal removes the flexibility to redefine views to show some fields without currency symbol. It was e.g. discussed at Per user list view definition, that there can be the need to remove redundant information from the views. It is impossible to have tax, net amount and total in different currencies, so it is rather sufficient to show the currency only for the total. Also there exist quite some businesses working only in one currency. For them all those currency symbols are needless information, possibly even more disturbing than useful. Is there a possibility to construct this feature to provide a way to show monetary fields without symbol without having to redefine them as numeric function fields just for the display without symbol?

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-07-21.17:03:22

Here is review338511002 which convert sale module as example.

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-07-21.16:59:50

Currently we use a Numeric field to store monetary. But we have to set the symbol attribute on all the views. Also the client always format as simple value while locale may define a different format for monetary.
So I propose to add a Monetary field which take a currency attribute which fill a symbol definition which is used as default value for the widgets and a monetary which says that client must use monetary formatting.
Unfortunately there is no standard function in JS to format as monetary without the currency. So we will have to keep the current formatting for sao.

History
Date User Action Args
2021-08-21 09:14:26roundup-botsetmessages: + msg69545
2021-08-21 09:14:13roundup-botsetmessages: + msg69543
2021-08-21 09:14:09roundup-botsetmessages: + msg69541
2021-08-21 09:13:59roundup-botsetmessages: + msg69539
2021-08-21 09:13:51roundup-botsetmessages: + msg69538
2021-08-21 09:13:47roundup-botsetmessages: + msg69537
2021-08-21 09:13:45roundup-botsetmessages: + msg69536
2021-08-21 09:13:41roundup-botsetmessages: + msg69535
2021-08-21 09:13:39roundup-botsetmessages: + msg69534
2021-08-21 09:13:35roundup-botsetmessages: + msg69533

Showing 10 items. Show all history (warning: this could be VERY long)