diff --git a/multi_currency_payment_in_pos/doc/RELEASE_NOTES.md b/multi_currency_payment_in_pos/doc/RELEASE_NOTES.md index 7724c9961..18a05ce13 100644 --- a/multi_currency_payment_in_pos/doc/RELEASE_NOTES.md +++ b/multi_currency_payment_in_pos/doc/RELEASE_NOTES.md @@ -5,3 +5,11 @@ #### ADD - Initial commit for POS Multi Currency Payment + + +#### 18.07.2024 +#### Version 16.0.1.0.0 +#### BUG FIX + +- The multicurrency is enabled before session opened.Once the session open we can't change the options. + diff --git a/multi_currency_payment_in_pos/models/res_config_settings.py b/multi_currency_payment_in_pos/models/res_config_settings.py index 81e33ccbe..14d42e2da 100644 --- a/multi_currency_payment_in_pos/models/res_config_settings.py +++ b/multi_currency_payment_in_pos/models/res_config_settings.py @@ -30,13 +30,17 @@ class ResConfigSettings(models.TransientModel): string="Currencies", related="pos_config_id.currency_ids", readonly=False, - help="The list of currencies supported by this Point of Sale configuration.") + help="The list of currencies supported by " + "this Point of Sale configuration.") + enable_currency = fields.Boolean(string="Enable Currency", - config_parameter="pos.enable_currency", - help="Enable or disable currency for this POS configuration.") + config_parameter="multi_currency_payment_in_pos.enable_currency", + help="Enable or disable currency for " + "this POS configuration.") @api.onchange('enable_currency') def _onchange_value(self): - """When enable the boolean field many2many currency field will display.""" + """When enable the boolean field many2many currency field will + display.""" for rec in self: rec.pos_config_id.enable_multicurrency = rec.enable_currency diff --git a/multi_currency_payment_in_pos/static/description/index.html b/multi_currency_payment_in_pos/static/description/index.html index 377640326..3084ccfaf 100644 --- a/multi_currency_payment_in_pos/static/description/index.html +++ b/multi_currency_payment_in_pos/static/description/index.html @@ -183,8 +183,7 @@

Enable option of Multi Currency per Session from POS settings and choose - the currencies.Multi Currency Session only enable when the - session is active.

+ the currencies.

diff --git a/multi_currency_payment_in_pos/views/res_config_settings_views.xml b/multi_currency_payment_in_pos/views/res_config_settings_views.xml index 205111388..0b3795135 100644 --- a/multi_currency_payment_in_pos/views/res_config_settings_views.xml +++ b/multi_currency_payment_in_pos/views/res_config_settings_views.xml @@ -18,7 +18,7 @@ title="Employees can select the multi currencies.">
+ attrs="{'readonly': [('pos_has_active_session','!=', False)]}"/>
Multi Currency per @@ -30,7 +30,8 @@
+ attrs="{'invisible': [('enable_currency','=', False)], + 'readonly': [('pos_has_active_session','!=', False)]}" nolabel="1"/>