Skip to content

Commit

Permalink
[MIG] stock_request: Migration to 16.0
Browse files Browse the repository at this point in the history
TT45771
  • Loading branch information
victoralmau committed Mar 21, 2024
1 parent 7c73a8e commit 764f12e
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 222 deletions.
48 changes: 0 additions & 48 deletions stock_request/i18n/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -1163,51 +1163,3 @@ msgid ""
msgstr ""
"Sie müssen eine Produktmengeneinheit aus der gleichen Kategorie, wie die "
"Basismengeneinheit des Produkts, verwenden"

#, fuzzy
#~ msgid "SMS Delivery error"
#~ msgstr "Meldungszustellfehler"

#, fuzzy
#~ msgid "Stock request"
#~ msgstr "Bestandsanforderung"

#, python-format
#~ msgid "<li><b>%s</b>: Transferred quantity %s %s</li>"
#~ msgstr "<li><b>%s</b>: Umgelagerte Menge %s %s</li>"

#~ msgid "Followers (Channels)"
#~ msgstr "Follower (Kanäle)"

#, python-format
#~ msgid "Receipt confirmation %s for your Request %s"
#~ msgstr "Bestätigungsbeleg %s zu Ihrer Anforderung %s"

#~ msgid "Requested by"
#~ msgstr "Angefordert durch"

#, python-format
#~ msgid ""
#~ "The following requested items from Stock Request %s have now been "
#~ "received in %s using Picking %s:"
#~ msgstr ""
#~ "Die folgenden Posten aus Anforderung %s sind nun eingegangen in %s unter "
#~ "Kommissionierung %s:"

#~ msgid "Archived"
#~ msgstr "Archiviert"

#~ msgid "If checked new messages require your attention."
#~ msgstr "Wenn angehakt, erfordern Meldungen Ihre Aufmerksamkeit."

#~ msgid "Overdue"
#~ msgstr "Überfällig"

#~ msgid "Planned"
#~ msgstr "Geplant"

#~ msgid "Packing Operation"
#~ msgstr "Packvorgang"

#~ msgid "Procurement Rule"
#~ msgstr "Beschaffungsregel"
3 changes: 0 additions & 3 deletions stock_request/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,3 @@ msgid ""
msgstr ""
"Debe seleccionada una unidad de medida de producto de la misma categoría que "
"la unidad de medida por defecto del producto"

#~ msgid "SMS Delivery error"
#~ msgstr "Error de entrega de SMS"
48 changes: 0 additions & 48 deletions stock_request/i18n/zh_CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -1148,51 +1148,3 @@ msgid ""
"You have to select a product unit of measure in the same category than the "
"default unit of measure of the product"
msgstr "您必须选择与产品默认计量单位相同类别的产品计量单位"

#, fuzzy
#~ msgid "SMS Delivery error"
#~ msgstr "消息递送错误"

#~ msgid "Stock request"
#~ msgstr "库存请求"

#, python-format
#~ msgid "<li><b>%s</b>: Transferred quantity %s %s</li>"
#~ msgstr "<li><b>%s</b>: 调拨数量%s %s</li>"

#~ msgid "Followers (Channels)"
#~ msgstr "关注者(频道)"

#, python-format
#~ msgid "Receipt confirmation %s for your Request %s"
#~ msgstr "您的请求%s的收据确认%s"

#~ msgid "Requested by"
#~ msgstr "请求者"

#, python-format
#~ msgid ""
#~ "The following requested items from Stock Request %s have now been "
#~ "received in %s using Picking %s:"
#~ msgstr "从库存请求%s中请求的下列项目现在已在使用领料%s的%s中收到:"

#, python-format
#~ msgid ""
#~ "Unfortunately it seems you do not have the necessary rights for creating "
#~ "stock requests. Please contact your administrator."
#~ msgstr "不幸的是,您似乎没有创建库存请求的必要权限。请与管理员联系。"

#~ msgid "Archived"
#~ msgstr "已归档"

#~ msgid "If checked new messages require your attention."
#~ msgstr ".如果勾选此项,将会收到新消息提醒。"

#~ msgid "Overdue"
#~ msgstr "逾期"

#~ msgid "Planned"
#~ msgstr "计划"

#~ msgid "Today"
#~ msgstr "今天"
5 changes: 2 additions & 3 deletions stock_request/models/stock_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ def _check_cancel_allocation(self):
)

def _prepare_procurement_values(self, group_id=False):

"""Prepare specific key for moves or other components that
will be created from a procurement rule
coming from a stock request. This method could be override
Expand Down Expand Up @@ -423,8 +422,8 @@ def create(self, vals_list):
if upd_vals.get("name", "/") == "/":
upd_vals["name"] = self.env["ir.sequence"].next_by_code("stock.request")
if "order_id" in upd_vals:
order_id = self.env["stock.request.order"].browse(upd_vals["order_id"])
upd_vals["expected_date"] = order_id.expected_date
order = self.env["stock.request.order"].browse(upd_vals["order_id"])
upd_vals["expected_date"] = order.expected_date
else:
upd_vals["expected_date"] = self._get_expected_date()
vals_list_upd.append(upd_vals)
Expand Down
6 changes: 1 addition & 5 deletions stock_request/security/stock_request_security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@
<data noupdate="1">
<record model="ir.rule" id="stock_picking_rule">
<field name="name">stock_request multi-company</field>
<field
name="model_id"
search="[('model','=','stock.request')]"
model="ir.model"
/>
<field name="model_id" ref="model_stock_request" />
<field name="global" eval="True" />
<field
name="domain_force"
Expand Down
Loading

0 comments on commit 764f12e

Please sign in to comment.