Skip to content

Commit

Permalink
change button in ui
Browse files Browse the repository at this point in the history
  • Loading branch information
bguillot committed Nov 26, 2024
1 parent 6971f82 commit 9cf5056
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions shopfloor_inventory/services/inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def _inventory_base_search_domain(self):
("user_id", "=", self.env.user.id),
("state", "=", "confirm"),
("shopfloor_validated", "!=", True),
("company_id", "=", self.env.company.id),
]

def _inventory_search(self, name_fragment=None, inventory_ids=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const Inventory = {
<div class="button-list button-vertical-list full">
<v-row align="center">
<v-col class="text-center" cols="12">
<btn-action action="todo" @click="state.on_confirm">{{ $t('inventory.button.confirm') }}</btn-action>
<btn-action action="todo" @click="state.on_confirm">{{ $t('inventory.button.confirm_location') }}</btn-action>
</v-col>
</v-row>
</div>
Expand All @@ -128,7 +128,7 @@ const Inventory = {
<div class="button-list button-vertical-list full">
<v-row align="center">
<v-col class="text-center" cols="12">
<btn-action action="todo" @click="state.on_confirm">{{ $t('inventory.button.confirm') }}</btn-action>
<btn-action action="todo" @click="state.on_confirm">{{ $t('inventory.button.confirm_done_location') }}</btn-action>
</v-col>
</v-row>
</div>
Expand Down
2 changes: 2 additions & 0 deletions shopfloor_mobile/static/wms/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
"inventory.button.cancel": "Cancel",
"inventory.button.confirm": "Confirm",
"inventory.button.confirm_qty": "Confirm quantity",
"inventory.button.confirm_location": "Confirm location",
"inventory.button.confirm_done_location": "Confirm location done",
"inventory.button.back": "Back",
"inventory.button.done": "Done",
"inventory.message.location_empty": "Location is empty"
Expand Down
4 changes: 3 additions & 1 deletion shopfloor_mobile/static/wms/src/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
"inventory.button.start": "Démarrer",
"inventory.button.cancel": "Annuler",
"inventory.button.confirm": "Confirmer",
"inventory.button.confirm_qty": "Confirmer quantité",
"inventory.button.confirm_location": "Confirmer emplacement",
"inventory.button.confirm_done_location": "Confirmer emplacement terminé",
"inventory.button.confirm_qty": "Confirmer quantité article",
"inventory.button.back": "Retour",
"inventory.button.done": "Terminer",
"inventory.message.location_empty": "Emplacement vide"
Expand Down

0 comments on commit 9cf5056

Please sign in to comment.