[FIX] point_of_sale: translate POS session elements
Issue ----- In a POS session, some buttons of the numpad and some fields in the client editor form are not translated. opw-3783252 opw-3756593 closes odoo/odoo#157509 Signed-off-by: Adrien Guilliams (adgu) <adgu@odoo.com>
This commit is contained in:
@@ -45,6 +45,13 @@ msgstr ""
|
||||
msgid " Use a printer connected to the IoT Box"
|
||||
msgstr ""
|
||||
|
||||
#. module: point_of_sale
|
||||
#. odoo-javascript
|
||||
#: code:addons/point_of_sale/static/src/app/screens/product_screen/product_screen.js:0
|
||||
#, python-format
|
||||
msgid "% Disc"
|
||||
msgstr ""
|
||||
|
||||
#. module: point_of_sale
|
||||
#. odoo-python
|
||||
#: code:addons/point_of_sale/models/pos_config.py:0
|
||||
@@ -1000,6 +1007,13 @@ msgstr ""
|
||||
msgid "Bank Statement Line"
|
||||
msgstr ""
|
||||
|
||||
#. module: point_of_sale
|
||||
#. odoo-javascript
|
||||
#: code:addons/point_of_sale/static/src/app/screens/partner_list/partner_editor/partner_editor.js:0
|
||||
#, python-format
|
||||
msgid "Barcode"
|
||||
msgstr ""
|
||||
|
||||
#. module: point_of_sale
|
||||
#: model_terms:ir.ui.view,arch_db:point_of_sale.res_config_settings_view_form
|
||||
msgid "Barcode Nomenclature"
|
||||
@@ -1410,6 +1424,13 @@ msgid ""
|
||||
"customer (tax exempt, onsite vs. takeaway, etc.)."
|
||||
msgstr ""
|
||||
|
||||
#. module: point_of_sale
|
||||
#. odoo-javascript
|
||||
#: code:addons/point_of_sale/static/src/app/screens/partner_list/partner_editor/partner_editor.js:0
|
||||
#, python-format
|
||||
msgid "City"
|
||||
msgstr ""
|
||||
|
||||
#. module: point_of_sale
|
||||
#: model_terms:ir.ui.view,arch_db:point_of_sale.pos_config_view_form
|
||||
#: model_terms:ir.ui.view,arch_db:point_of_sale.res_config_settings_view_form
|
||||
@@ -2447,6 +2468,13 @@ msgstr ""
|
||||
msgid "Electronic Scale"
|
||||
msgstr ""
|
||||
|
||||
#. module: point_of_sale
|
||||
#. odoo-javascript
|
||||
#: code:addons/point_of_sale/static/src/app/screens/partner_list/partner_editor/partner_editor.js:0
|
||||
#, python-format
|
||||
msgid "Email"
|
||||
msgstr ""
|
||||
|
||||
#. module: point_of_sale
|
||||
#. odoo-javascript
|
||||
#: code:addons/point_of_sale/static/src/app/screens/receipt_screen/receipt_screen.js:0
|
||||
@@ -3561,6 +3589,13 @@ msgstr ""
|
||||
msgid "Misc"
|
||||
msgstr ""
|
||||
|
||||
#. module: point_of_sale
|
||||
#. odoo-javascript
|
||||
#: code:addons/point_of_sale/static/src/app/screens/partner_list/partner_editor/partner_editor.js:0
|
||||
#, python-format
|
||||
msgid "Mobile"
|
||||
msgstr ""
|
||||
|
||||
#. module: point_of_sale
|
||||
#: model:ir.model.fields,field_description:point_of_sale.field_pos_config__module_pos_hr
|
||||
#: model:ir.model.fields,field_description:point_of_sale.field_res_config_settings__pos_module_pos_hr
|
||||
@@ -4585,6 +4620,13 @@ msgid ""
|
||||
"interim employee."
|
||||
msgstr ""
|
||||
|
||||
#. module: point_of_sale
|
||||
#. odoo-javascript
|
||||
#: code:addons/point_of_sale/static/src/app/screens/partner_list/partner_editor/partner_editor.js:0
|
||||
#, python-format
|
||||
msgid "Phone"
|
||||
msgstr ""
|
||||
|
||||
#. module: point_of_sale
|
||||
#: model_terms:ir.ui.view,arch_db:point_of_sale.res_config_settings_view_form
|
||||
msgid "Pick which product categories are available"
|
||||
@@ -5119,6 +5161,7 @@ msgstr ""
|
||||
#. module: point_of_sale
|
||||
#. odoo-javascript
|
||||
#: code:addons/point_of_sale/static/src/app/customer_display/customer_display_template.xml:0
|
||||
#: code:addons/point_of_sale/static/src/app/screens/product_screen/product_screen.js:0
|
||||
#, python-format
|
||||
msgid "Price"
|
||||
msgstr ""
|
||||
@@ -5476,6 +5519,13 @@ msgstr ""
|
||||
msgid "Proxy Warning"
|
||||
msgstr ""
|
||||
|
||||
#. module: point_of_sale
|
||||
#. odoo-javascript
|
||||
#: code:addons/point_of_sale/static/src/app/screens/product_screen/product_screen.js:0
|
||||
#, python-format
|
||||
msgid "Qty"
|
||||
msgstr ""
|
||||
|
||||
#. module: point_of_sale
|
||||
#. odoo-javascript
|
||||
#: code:addons/point_of_sale/static/src/app/customer_display/customer_display_template.xml:0
|
||||
@@ -6514,6 +6564,13 @@ msgstr ""
|
||||
msgid "Stock should be updated at closing"
|
||||
msgstr ""
|
||||
|
||||
#. module: point_of_sale
|
||||
#. odoo-javascript
|
||||
#: code:addons/point_of_sale/static/src/app/screens/partner_list/partner_editor/partner_editor.js:0
|
||||
#, python-format
|
||||
msgid "Street"
|
||||
msgstr ""
|
||||
|
||||
#. module: point_of_sale
|
||||
#: model_terms:ir.ui.view,arch_db:point_of_sale.res_config_settings_view_form
|
||||
msgid "Stripe"
|
||||
@@ -8268,3 +8325,10 @@ msgstr ""
|
||||
#, python-format
|
||||
msgid "were duplicates of existing orders"
|
||||
msgstr ""
|
||||
|
||||
#. module: point_of_sale
|
||||
#. odoo-javascript
|
||||
#: code:addons/point_of_sale/static/src/app/screens/partner_list/partner_editor/partner_editor.js:0
|
||||
#, python-format
|
||||
msgid "Zip"
|
||||
msgstr ""
|
||||
|
||||
+10
@@ -31,6 +31,16 @@ export class PartnerDetailsEdit extends Component {
|
||||
vat: partner.vat || "",
|
||||
property_product_pricelist: this.setDefaultPricelist(partner),
|
||||
});
|
||||
// Provides translated terms used in the view
|
||||
this.partnerDetailsFields = {
|
||||
'Street': _t('Street'),
|
||||
'City': _t('City'),
|
||||
'Zip': _t('Zip'),
|
||||
'Email': _t('Email'),
|
||||
'Phone': _t('Phone'),
|
||||
'Mobile': _t('Mobile'),
|
||||
'Barcode': _t('Barcode')
|
||||
};
|
||||
Object.assign(this.props.imperativeHandle, {
|
||||
save: () => this.saveChanges(),
|
||||
});
|
||||
|
||||
+2
-2
@@ -18,13 +18,13 @@
|
||||
<div class="partner-details-box row row-cols-1 row-cols-sm-2 gy-3 mt-3">
|
||||
<t t-foreach="['Street', 'City', 'Zip', 'Email', 'Phone', 'Mobile', 'Barcode' ]" t-as="item" t-key="item">
|
||||
<div class="partner-detail col">
|
||||
<label class="form-label label" t-attf-for="{{item}}" t-esc="item"/>
|
||||
<label class="form-label label" t-attf-for="{{item}}" t-esc="partnerDetailsFields[item]"/>
|
||||
<input
|
||||
class="detail form-control"
|
||||
t-attf-id="{{item}}"
|
||||
t-attf-name="{{item}}"
|
||||
t-model="changes[item.toLowerCase()]"
|
||||
t-attf-placeholder="{{item}}"
|
||||
t-attf-placeholder="{{partnerDetailsFields[item]}}"
|
||||
t-att="{'disabled': isFieldCommercialAndPartnerIsChild(item)}"
|
||||
t-att-class="{'border-danger': missingFields.includes(item.toLowerCase())}" />
|
||||
</div>
|
||||
|
||||
@@ -76,15 +76,15 @@ export class ProductScreen extends ControlButtonsMixin(Component) {
|
||||
{ value: "1" },
|
||||
{ value: "2" },
|
||||
{ value: "3" },
|
||||
{ value: "quantity", text: "Qty" },
|
||||
{ value: "quantity", text: _t("Qty") },
|
||||
{ value: "4" },
|
||||
{ value: "5" },
|
||||
{ value: "6" },
|
||||
{ value: "discount", text: "% Disc", disabled: !this.pos.config.manual_discount },
|
||||
{ value: "discount", text: _t("% Disc"), disabled: !this.pos.config.manual_discount },
|
||||
{ value: "7" },
|
||||
{ value: "8" },
|
||||
{ value: "9" },
|
||||
{ value: "price", text: "Price", disabled: !this.pos.cashierHasPriceControlRights() },
|
||||
{ value: "price", text: _t("Price"), disabled: !this.pos.cashierHasPriceControlRights() },
|
||||
{ value: "-", text: "+/-" },
|
||||
{ value: "0" },
|
||||
{ value: this.env.services.localization.decimalPoint },
|
||||
|
||||
Reference in New Issue
Block a user