From b5e52601bc56112051a70fa4233b8edd0656d42b Mon Sep 17 00:00:00 2001 From: luvi Date: Tue, 13 Jun 2023 00:01:32 +0000 Subject: [PATCH] [IMP] web: add currency_field option documentation in monetary field This commit add the documentation for the currency_field in monetary field. closes odoo/odoo#118199 Related: odoo/enterprise#40597 Signed-off-by: Lucas Perais (lpe) --- .../static/src/views/fields/monetary/monetary_field.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/addons/web/static/src/views/fields/monetary/monetary_field.js b/addons/web/static/src/views/fields/monetary/monetary_field.js index 0bbf1b1bba7..4aeaf88e203 100644 --- a/addons/web/static/src/views/fields/monetary/monetary_field.js +++ b/addons/web/static/src/views/fields/monetary/monetary_field.js @@ -82,6 +82,14 @@ export class MonetaryField extends Component { export const monetaryField = { component: MonetaryField, + supportedOptions: [ + { + name: "currency_field", + label: _lt("Currency"), + type: "field", + availableTypes: ["many2one"], + }, + ], supportedTypes: ["monetary", "float"], displayName: _lt("Monetary"), extractProps: ({ attrs, options }) => ({