mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] stock_request_submit
[UPD] Update stock_request_submit.pot
This commit is contained in:
committed by
Patrick Wilson
parent
cfaf60a4cd
commit
c3a8431265
@@ -13,12 +13,6 @@ msgstr ""
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: stock_request_submit
|
||||
#: code:addons/stock_request_submit/models/stock_request.py:14
|
||||
#, python-format
|
||||
msgid "Draft"
|
||||
msgstr ""
|
||||
|
||||
#. module: stock_request_submit
|
||||
#: model:ir.model.fields,field_description:stock_request_submit.field_stock_request__route_id
|
||||
msgid "Route"
|
||||
@@ -40,10 +34,3 @@ msgstr ""
|
||||
msgid "Submit"
|
||||
msgstr ""
|
||||
|
||||
#. module: stock_request_submit
|
||||
#: code:addons/stock_request_submit/models/stock_request.py:12
|
||||
#: code:addons/stock_request_submit/models/stock_request.py:15
|
||||
#, python-format
|
||||
msgid "Submitted"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright 2019 Open Source Integrators
|
||||
# Copyright 2019 Eficent Business and IT Consulting Services, S.L.
|
||||
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
||||
from odoo import api, fields, models, _
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class StockRequest(models.Model):
|
||||
@@ -9,10 +9,10 @@ class StockRequest(models.Model):
|
||||
|
||||
def __get_request_states(self):
|
||||
states = super().__get_request_states()
|
||||
if not ('submitted', _('Submitted')) in states:
|
||||
if not ('submitted', 'Submitted') in states:
|
||||
states.insert(
|
||||
states.index(('draft', _('Draft'))) + 1,
|
||||
('submitted', _('Submitted')))
|
||||
states.index(('draft', 'Draft')) + 1,
|
||||
('submitted', 'Submitted'))
|
||||
return states
|
||||
|
||||
route_id = fields.Many2one(states={'draft': [('readonly', False)],
|
||||
|
||||
Reference in New Issue
Block a user