Skip to content

Commit

Permalink
Add features for inventory management and data translation
Browse files Browse the repository at this point in the history
Introduced new inventory management features including inventory confirmation functionality and product replenishment logic. Removed obsolete security configurations and cleaned old inventory rules. Enhanced Romanian translations and refactored critical model methods to handle product inventory adjustments more robustly.
  • Loading branch information
dhongu committed Jan 27, 2025
1 parent 00dccbc commit 46219dd
Show file tree
Hide file tree
Showing 19 changed files with 600 additions and 208 deletions.
2 changes: 1 addition & 1 deletion deltatech_stock_analytic/models/stock.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def write(self, values):
for move in self:
if not move.price_unit:
if move.stock_valuation_layer_ids:
price_unit = move._get_price_unit()
price_unit = next(iter(move._get_price_unit().values()))
else:
price_unit = move.product_id.standard_price
else:
Expand Down
1 change: 1 addition & 0 deletions deltatech_stock_inventory/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
# "wizard/stock_change_product_qty_view.xml",
"views/product_kanban_view.xml",
"wizard/stock_inventory_merge.xml",
"wizard/product_replenish_views.xml",
],
"images": ["images/main_screenshot.png"],
"installable": True,
Expand Down
60 changes: 48 additions & 12 deletions deltatech_stock_inventory/i18n/ro.po
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ msgstr ""
#. module: deltatech_stock_inventory
#: model:res.groups,name:deltatech_stock_inventory.group_change_inventory_date
msgid "Allow to change inventory date"
msgstr ""
msgstr "Permite schimbarea datei inventarului"

#. module: deltatech_stock_inventory
#: model:ir.model.fields,help:deltatech_stock_inventory.field_stock_inventory__prefill_counted_quantity
Expand All @@ -169,7 +169,7 @@ msgstr ""
#. module: deltatech_stock_inventory
#: model:ir.model.fields,help:deltatech_stock_inventory.field_stock_inventory__start_empty
msgid "Allows to start with an empty inventory."
msgstr ""
msgstr "Permite să începeți cu un inventar gol."

#. module: deltatech_stock_inventory
#: model:ir.model.fields,field_description:deltatech_stock_inventory.field_stock_inventory__message_attachment_count
Expand All @@ -184,11 +184,21 @@ msgid ""
" suggested counted quantity."
msgstr ""

#. module: deltatech_stock_inventory
#: model:ir.model.fields,field_description:deltatech_stock_inventory.field_stock_inventory__can_archive_svl
msgid "Can Archive Svl"
msgstr "Poate arhiva Svl"

#. module: deltatech_stock_inventory
#: model:res.groups,name:deltatech_stock_inventory.group_merge_inventory
msgid "Can merge inventory documents"
msgstr "Unire documente inventar"

#. module: deltatech_stock_inventory
#: model:res.groups,name:deltatech_stock_inventory.group_view_inventory_button
msgid "Can update quantities"
msgstr "Buton inventar în produs"

#. module: deltatech_stock_inventory
#: model_terms:ir.ui.view,arch_db:deltatech_stock_inventory.view_stock_confirm_inventory_form
#: model_terms:ir.ui.view,arch_db:deltatech_stock_inventory.view_stock_inventory_merge_form
Expand All @@ -198,12 +208,12 @@ msgstr "Anulează"
#. module: deltatech_stock_inventory
#: model_terms:ir.ui.view,arch_db:deltatech_stock_inventory.view_inventory_form
msgid "Cancel Inventory"
msgstr ""
msgstr "Anulează inventar"

#. module: deltatech_stock_inventory
#: model:ir.model.fields.selection,name:deltatech_stock_inventory.selection__stock_inventory__state__cancel
msgid "Cancelled"
msgstr ""
msgstr "Anulat"

#. module: deltatech_stock_inventory
#: model:ir.model.fields,field_description:deltatech_stock_inventory.field_product_product__loc_case
Expand All @@ -215,6 +225,12 @@ msgstr ""
msgid "Case"
msgstr "Cutie"

#. module: deltatech_stock_inventory
#: model:ir.model.fields,field_description:deltatech_stock_inventory.field_product_warehouse_location__loc_case
#: model:ir.model.fields,field_description:deltatech_stock_inventory.field_stock_inventory_line__loc_case
msgid "Case Name"
msgstr "Cutie"

#. module: deltatech_stock_inventory
#: model:ir.model.fields,field_description:deltatech_stock_inventory.field_stock_inventory_line__categ_id
msgid "Category"
Expand All @@ -223,7 +239,12 @@ msgstr "Categorie"
#. module: deltatech_stock_inventory
#: model_terms:ir.ui.view,arch_db:deltatech_stock_inventory.view_stock_confirm_inventory_form
msgid "Change"
msgstr ""
msgstr "Schimbă"

#. module: deltatech_stock_inventory
#: model:ir.model.fields,field_description:deltatech_stock_inventory.field_stock_inventory__archive_svl
msgid "Clear old valuation"
msgstr "Șterge evaluările vechi"

#. module: deltatech_stock_inventory
#: model:ir.model.fields,field_description:deltatech_stock_inventory.field_stock_inventory__company_id
Expand All @@ -240,7 +261,7 @@ msgstr "Confirmă"
#. module: deltatech_stock_inventory
#: model:ir.actions.act_window,name:deltatech_stock_inventory.action_stock_confirm_inventory
msgid "Confirm Inventory"
msgstr ""
msgstr "Confirmă inventar"

#. module: deltatech_stock_inventory
#: model_terms:ir.ui.view,arch_db:deltatech_stock_inventory.view_product_template_warehouse_form
Expand Down Expand Up @@ -299,12 +320,12 @@ msgstr "Data"
#. module: deltatech_stock_inventory
#: model:ir.model.fields.selection,name:deltatech_stock_inventory.selection__stock_inventory__prefill_counted_quantity__counted
msgid "Default to stock on hand"
msgstr ""
msgstr "Implicit stocul disponibil"

#. module: deltatech_stock_inventory
#: model:ir.model.fields.selection,name:deltatech_stock_inventory.selection__stock_inventory__prefill_counted_quantity__zero
msgid "Default to zero"
msgstr ""
msgstr "Implicit zero"

#. module: deltatech_stock_inventory
#: model:ir.model.fields,field_description:deltatech_stock_inventory.field_stock_inventory_line__difference_qty
Expand All @@ -314,7 +335,7 @@ msgstr "Diferență"
#. module: deltatech_stock_inventory
#: model_terms:ir.ui.view,arch_db:deltatech_stock_inventory.stock_inventory_line_search
msgid "Difference different than zero"
msgstr ""
msgstr "Diferență diferită de zero"

#. module: deltatech_stock_inventory
#: model:ir.model.fields,field_description:deltatech_stock_inventory.field_product_warehouse_location__display_name
Expand All @@ -339,7 +360,7 @@ msgstr "Golește inventar"
#. module: deltatech_stock_inventory
#: model:ir.model.fields,help:deltatech_stock_inventory.field_stock_inventory_line__product_tracking
msgid "Ensure the traceability of a storable product in your warehouse."
msgstr ""
msgstr "Asigurați trasabilitatea unui produs stocabil în depozitul dvs."

#. module: deltatech_stock_inventory
#: model:ir.model.fields,field_description:deltatech_stock_inventory.field_stock_inventory__message_follower_ids
Expand Down Expand Up @@ -428,7 +449,7 @@ msgstr ""
#: model:ir.model.fields.selection,name:deltatech_stock_inventory.selection__stock_inventory__state__confirm
#: model_terms:ir.ui.view,arch_db:deltatech_stock_inventory.view_inventory_filter
msgid "In Progress"
msgstr ""
msgstr "În desfășurare"

#. module: deltatech_stock_inventory
#: model:ir.model.fields,field_description:deltatech_stock_inventory.field_stock_inventory__exhausted
Expand Down Expand Up @@ -478,7 +499,7 @@ msgstr ""
#. module: deltatech_stock_inventory
#: model:ir.model,name:deltatech_stock_inventory.model_stock_inventory_adjustment_name
msgid "Inventory Adjustment Reference / Reason"
msgstr ""
msgstr "Referință / Motiv ajustare inventar"

#. module: deltatech_stock_inventory
#: model:ir.model.fields,field_description:deltatech_stock_inventory.field_stock_inventory__date
Expand Down Expand Up @@ -520,6 +541,11 @@ msgstr ""
msgid "Inventory Position"
msgstr "Poziții inventar"

#. module: deltatech_stock_inventory
#: model:ir.model.fields,field_description:deltatech_stock_inventory.field_stock_inventory_adjustment_name__inventory_adjustment_name
msgid "Inventory Reason"
msgstr "Motiv inventar"

#. module: deltatech_stock_inventory
#: model:ir.model.fields,field_description:deltatech_stock_inventory.field_stock_inventory_line__is_editable
msgid "Is Editable"
Expand Down Expand Up @@ -787,6 +813,11 @@ msgstr ""
msgid "Product Unit of Measure"
msgstr ""

#. module: deltatech_stock_inventory
#: model:ir.model,name:deltatech_stock_inventory.model_product_product
msgid "Product Variant"
msgstr "Variantă produs"

#. module: deltatech_stock_inventory
#: model:ir.model,name:deltatech_stock_inventory.model_product_warehouse_location
msgid "Product Warehouse Location"
Expand Down Expand Up @@ -903,6 +934,11 @@ msgstr ""
msgid "Shelf"
msgstr "Poliță"

#. module: deltatech_stock_inventory
#: model:ir.model.fields,field_description:deltatech_stock_inventory.field_product_warehouse_location__loc_shelf
msgid "Shelf Name"
msgstr "Poliță"

#. module: deltatech_stock_inventory
#: model_terms:ir.ui.view,arch_db:deltatech_stock_inventory.view_inventory_form
msgid "Show Lines"
Expand Down
2 changes: 2 additions & 0 deletions deltatech_stock_inventory/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
from . import product
from . import stock_move
from . import stock_quant
from . import stock_picking
from . import stock_valuation_layer
Loading

0 comments on commit 46219dd

Please sign in to comment.