various fixes

This commit is contained in:
Jordi Ballester Alomar
2018-04-25 19:22:17 +02:00
committed by Bernat Puig Font
parent 7416737d3f
commit 3431cdcfed
6 changed files with 283 additions and 18 deletions

View File

@@ -5,7 +5,7 @@
'name': 'Stock Request kanban',
'version': '11.0.1.0.0',
'category': 'Reporting',
'website': 'https://github.com/eficent/cb-addons',
'website': 'https://github.com/OCA/stock-logistics-warehouse',
'author': 'Creu Blanca, Eficent, Odoo Community Association (OCA)',
'license': 'AGPL-3',
'summary': 'Adds a stock request order, and takes stock requests as lines',
@@ -20,6 +20,7 @@
'wizard/wizard_stock_request_order_kanban_views.xml',
'views/stock_request_order_views.xml',
'views/stock_request_kanban_views.xml',
'views/stock_request_menu.xml',
'report/stock_request_kanban_templates.xml',
'security/ir.model.access.csv',
],

View File

@@ -0,0 +1,255 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_request_kanban
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: stock_request_kanban
#: model:ir.model.fields,field_description:stock_request_kanban.field_stock_request_kanban_active
msgid "Active"
msgstr ""
#. module: stock_request_kanban
#: model:ir.actions.act_window,name:stock_request_kanban.wizard_stock_request_kanban_action
#: model:ir.actions.act_window,name:stock_request_kanban.wizard_stock_request_order_kanban_action
#: model:ir.ui.view,arch_db:stock_request_kanban.wizard_stock_request_kanban_form
msgid "Add Kanban"
msgstr ""
#. module: stock_request_kanban
#: code:addons/stock_request_kanban/wizard/wizard_stock_request_kanban_abstract.py:60
#, python-format
msgid "Added kanban %s for product %s"
msgstr ""
#. module: stock_request_kanban
#: model:ir.ui.view,arch_db:stock_request_kanban.stock_request_kanban_search
msgid "Archived"
msgstr ""
#. module: stock_request_kanban
#: code:addons/stock_request_kanban/wizard/wizard_stock_request_kanban_abstract.py:49
#, python-format
msgid "Barcode %s does not correspond to any Kanban. Try with another barcode or press Close to finish scanning."
msgstr ""
#. module: stock_request_kanban
#: code:addons/stock_request_kanban/wizard/wizard_stock_request_order_kanban.py:23
#, python-format
msgid "Barcode %s is on the order"
msgstr ""
#. module: stock_request_kanban
#: code:addons/stock_request_kanban/wizard/wizard_stock_request_kanban_abstract.py:39
#, python-format
msgid "CRC is not valid"
msgstr ""
#. module: stock_request_kanban
#: model:ir.actions.act_window,help:stock_request_kanban.stock_request_kanban_action
msgid "Click to add a Stock Request Kanban."
msgstr ""
#. module: stock_request_kanban
#: model:ir.ui.view,arch_db:stock_request_kanban.wizard_stock_request_kanban_form
msgid "Close"
msgstr ""
#. module: stock_request_kanban
#: code:addons/stock_request_kanban/wizard/wizard_stock_request_order_kanban.py:32
#, python-format
msgid "Company must be the same"
msgstr ""
#. module: stock_request_kanban
#: model:ir.model.fields,field_description:stock_request_kanban.field_stock_request_kanban_create_uid
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_kanban_create_uid
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_order_kanban_create_uid
msgid "Created by"
msgstr ""
#. module: stock_request_kanban
#: model:ir.model.fields,field_description:stock_request_kanban.field_stock_request_kanban_create_date
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_kanban_create_date
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_order_kanban_create_date
msgid "Created on"
msgstr ""
#. module: stock_request_kanban
#: model:ir.model.fields,field_description:stock_request_kanban.field_stock_request_kanban_display_name
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_kanban_abstract_display_name
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_kanban_display_name
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_order_kanban_display_name
msgid "Display Name"
msgstr ""
#. module: stock_request_kanban
#: model:ir.ui.view,arch_db:stock_request_kanban.stock_request_kanban_search
msgid "Group By"
msgstr ""
#. module: stock_request_kanban
#: model:ir.model.fields,field_description:stock_request_kanban.field_stock_request_kanban_id_5473
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_kanban_abstract_id
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_kanban_id
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_order_kanban_id
msgid "ID"
msgstr ""
#. module: stock_request_kanban
#: model:ir.model.fields,field_description:stock_request_kanban.field_stock_request_kanban_id
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_kanban_abstract_kanban_id
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_kanban_kanban_id
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_order_kanban_kanban_id
msgid "Kanban"
msgstr ""
#. module: stock_request_kanban
#: model:ir.ui.menu,name:stock_request_kanban.stock_request_kanban_menu
msgid "Kanban cards"
msgstr ""
#. module: stock_request_kanban
#: model:ir.model.fields,field_description:stock_request_kanban.field_stock_request_kanban___last_update
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_kanban___last_update
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_kanban_abstract___last_update
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_order_kanban___last_update
msgid "Last Modified on"
msgstr ""
#. module: stock_request_kanban
#: model:ir.model.fields,field_description:stock_request_kanban.field_stock_request_kanban_write_uid
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_kanban_write_uid
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_order_kanban_write_uid
msgid "Last Updated by"
msgstr ""
#. module: stock_request_kanban
#: model:ir.model.fields,field_description:stock_request_kanban.field_stock_request_kanban_write_date
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_kanban_write_date
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_order_kanban_write_date
msgid "Last Updated on"
msgstr ""
#. module: stock_request_kanban
#: code:addons/stock_request_kanban/wizard/wizard_stock_request_order_kanban.py:27
#, python-format
msgid "Lines only can be added on orders with draft state"
msgstr ""
#. module: stock_request_kanban
#: model:ir.ui.view,arch_db:stock_request_kanban.stock_request_kanban_search
msgid "Location"
msgstr ""
#. module: stock_request_kanban
#: code:addons/stock_request_kanban/wizard/wizard_stock_request_order_kanban.py:40
#, python-format
msgid "Location must be the same"
msgstr ""
#. module: stock_request_kanban
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_order_kanban_order_id
msgid "Order"
msgstr ""
#. module: stock_request_kanban
#: model:ir.actions.report,name:stock_request_kanban.action_report_kanban
msgid "Print kanban"
msgstr ""
#. module: stock_request_kanban
#: code:addons/stock_request_kanban/wizard/wizard_stock_request_order_kanban.py:38
#, python-format
msgid "Procurement group must be the same"
msgstr ""
#. module: stock_request_kanban
#: model:ir.ui.menu,name:stock_request_kanban.menu_wizard_stock_request_kanban
msgid "Request from Kanban cards"
msgstr ""
#. module: stock_request_kanban
#: model:ir.ui.view,arch_db:stock_request_kanban.stock_request_order_form
msgid "Scan"
msgstr ""
#. module: stock_request_kanban
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_kanban_abstract_status
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_kanban_status
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_order_kanban_status
msgid "Status"
msgstr ""
#. module: stock_request_kanban
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_kanban_abstract_status_state
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_kanban_status_state
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_order_kanban_status_state
msgid "Status State"
msgstr ""
#. module: stock_request_kanban
#: model:ir.model,name:stock_request_kanban.model_stock_request
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_kanban_abstract_stock_request_id
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_kanban_stock_request_id
#: model:ir.model.fields,field_description:stock_request_kanban.field_wizard_stock_request_order_kanban_stock_request_id
msgid "Stock Request"
msgstr ""
#. module: stock_request_kanban
#: model:ir.model,name:stock_request_kanban.model_stock_request_kanban
#: model:ir.ui.view,arch_db:stock_request_kanban.view_stock_request_kanban_form
msgid "Stock Request Kanban"
msgstr ""
#. module: stock_request_kanban
#: model:ir.actions.act_window,name:stock_request_kanban.stock_request_kanban_action
msgid "Stock Request Kanbans"
msgstr ""
#. module: stock_request_kanban
#: model:ir.ui.view,arch_db:stock_request_kanban.view_stock_request_kanban_form
#: model:ir.ui.view,arch_db:stock_request_kanban.view_stock_request_kanban_tree
msgid "Stock Requests"
msgstr ""
#. module: stock_request_kanban
#: model:ir.ui.view,arch_db:stock_request_kanban.stock_request_kanban_search
msgid "Stock Requests Kanban"
msgstr ""
#. module: stock_request_kanban
#: model:ir.ui.view,arch_db:stock_request_kanban.stock_request_kanban_search
msgid "Warehouse"
msgstr ""
#. module: stock_request_kanban
#: code:addons/stock_request_kanban/wizard/wizard_stock_request_order_kanban.py:42
#, python-format
msgid "Warehouse must be the same"
msgstr ""
#. module: stock_request_kanban
#: model:ir.model,name:stock_request_kanban.model_wizard_stock_request_kanban
msgid "wizard.stock.request.kanban"
msgstr ""
#. module: stock_request_kanban
#: model:ir.model,name:stock_request_kanban.model_wizard_stock_request_kanban_abstract
msgid "wizard.stock.request.kanban.abstract"
msgstr ""
#. module: stock_request_kanban
#: model:ir.model,name:stock_request_kanban.model_wizard_stock_request_order_kanban
msgid "wizard.stock.request.order.kanban"
msgstr ""

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

@@ -61,8 +61,6 @@
</group>
<group>
<field name="warehouse_id" widget="selection" groups="stock.group_stock_multi_locations"/>
<field name="product_uom_id"
options="{'no_open': True, 'no_create': True}" groups="product.group_uom"/>
<field name="location_id" groups="stock.group_stock_multi_locations"/>
<field name="route_id"
options="{'no_create': True}" groups="stock.group_stock_multi_locations"/>
@@ -72,7 +70,15 @@
<field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
</group>
<group name="quantities">
<field name="product_uom_qty"/>
<label for="product_uom_qty"/>
<div>
<field name="product_uom_qty"
class="oe_inline"/>
<field name="product_uom_id"
class="oe_inline"
options="{'no_open': True, 'no_create': True}"
groups="product.group_uom"/>
</div>
</group>
</group>
</sheet>
@@ -112,7 +118,7 @@
<li t-if="record.product_id.raw_value"><field name="product_id"/></li>
<li t-if="record.warehouse_id.raw_value" groups="stock.group_stock_multi_locations"><field name="warehouse_id"/></li>
<li t-if="record.location_id.raw_value" groups="stock.group_stock_multi_locations"><field name="location_id"/></li>
<li t-if="record.product_qty"><field name="product_qty"/></li>
<li t-if="record.product_qty"><field name="product_qty"/> <field name="product_uom_id"/></li>
</ul>
</div>
</div>
@@ -136,11 +142,4 @@
</field>
</record>
<menuitem id="stock_request_kanban_menu"
name="Stock Requests Kanbans"
parent="stock_request.menu_stock_request_root"
action="stock_request_kanban_action"
groups="stock_request.group_stock_request_manager"
sequence="30"/>
</odoo>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<menuitem id="stock_request_kanban_menu"
name="Kanban cards"
parent="stock_request.menu_stock_request_master_data"
action="stock_request_kanban_action"
groups="stock_request.group_stock_request_manager"
sequence="110"/>
<menuitem id="menu_wizard_stock_request_kanban"
name="Request from Kanban cards"
parent="stock_request.menu_stock_request_operations"
action="wizard_stock_request_kanban_action"
sequence="40"/>
</odoo>

View File

@@ -47,10 +47,4 @@
view_type="form"
target="new"/>
<menuitem
id="menu_wizard_stock_request_kanban"
action="wizard_stock_request_kanban_action"
name="Order Kanban Card" parent="stock_request.menu_stock_request_root"
sequence="20"/>
</odoo>