mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[MIG] stock_request_picking_type: Migration to 13.0
This commit is contained in:
committed by
Reed Hayashikawa
parent
4de01878a7
commit
96431eb166
@@ -14,13 +14,13 @@ Stock Request Picking Type
|
||||
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
|
||||
:alt: License: LGPL-3
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_request_picking_type
|
||||
:target: https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_request_picking_type
|
||||
:alt: OCA/stock-logistics-warehouse
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_request_picking_type
|
||||
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_request_picking_type
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||
:target: https://runbot.odoo-community.org/runbot/153/12.0
|
||||
:target: https://runbot.odoo-community.org/runbot/153/13.0
|
||||
:alt: Try me on Runbot
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
@@ -45,7 +45,7 @@ Bug Tracker
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_request_picking_type%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_request_picking_type%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
@@ -61,6 +61,7 @@ Contributors
|
||||
~~~~~~~~~~~~
|
||||
|
||||
* Maxime Chambreuil <mchambreuil@opensourceintegrators.com>
|
||||
* Pimolnat Suntian <pimolnats@ecosoft.co.th>
|
||||
|
||||
Maintainers
|
||||
~~~~~~~~~~~
|
||||
@@ -83,6 +84,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|
||||
|
||||
|maintainer-max3903|
|
||||
|
||||
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_request_picking_type>`_ project on GitHub.
|
||||
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_request_picking_type>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"version": "13.0.1.0.0",
|
||||
"license": "LGPL-3",
|
||||
"website": "https://github.com/stock-logistics-warehouse",
|
||||
"author": "Open Source Integrators, " "Odoo Community Association (OCA)",
|
||||
"author": "Open Source Integrators, Odoo Community Association (OCA)",
|
||||
"category": "Warehouse Management",
|
||||
"depends": ["stock_request_submit"],
|
||||
"data": [
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
<odoo noupdate="1">
|
||||
|
||||
<record id="stock_request_order" model="stock.picking.type">
|
||||
<field name="name">Stock Requests</field>
|
||||
<field name="sequence_id" ref="stock_request.seq_stock_request_order"/>
|
||||
<field name="sequence_id" ref="stock_request.seq_stock_request_order" />
|
||||
<field name="code">stock_request_order</field>
|
||||
<field name="sequence">0</field>
|
||||
<field name="sequence_code">SRO</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -15,9 +15,6 @@ class StockPickingType(models.Model):
|
||||
count_sr_late = fields.Integer(string="Late", compute="_compute_sr_count")
|
||||
|
||||
def _compute_sr_count(self):
|
||||
types = self.filtered(lambda picking: picking.code == "stock_request_order")
|
||||
if not types:
|
||||
return
|
||||
domains = {
|
||||
"count_sr_todo": [("state", "=", "submitted")],
|
||||
"count_sr_open": [("state", "=", "open")],
|
||||
@@ -41,7 +38,7 @@ class StockPickingType(models.Model):
|
||||
and x["picking_type_id"][0]: x["picking_type_id_count"]
|
||||
for x in data
|
||||
}
|
||||
for record in types:
|
||||
for record in self:
|
||||
record[field] = count.get(record.id, 0)
|
||||
|
||||
def get_stock_request_order_picking_type_action(self):
|
||||
|
||||
@@ -19,7 +19,7 @@ class StockRequestOrder(models.Model):
|
||||
"in",
|
||||
[
|
||||
self.env.context.get(
|
||||
"company_id", self.env.user.company_id.id
|
||||
"company_id", self.env.company.id
|
||||
),
|
||||
False,
|
||||
],
|
||||
@@ -31,8 +31,8 @@ class StockRequestOrder(models.Model):
|
||||
)
|
||||
|
||||
picking_type_id = fields.Many2one(
|
||||
"stock.picking.type",
|
||||
"Operation Type",
|
||||
comodel_name="stock.picking.type",
|
||||
string="Operation Type",
|
||||
default=_get_default_picking_type,
|
||||
required=True,
|
||||
)
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
* Maxime Chambreuil <mchambreuil@opensourceintegrators.com>
|
||||
* Pimolnat Suntian <pimolnats@ecosoft.co.th>
|
||||
|
||||
@@ -367,7 +367,7 @@ ul.auto-toc {
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_request_picking_type"><img alt="OCA/stock-logistics-warehouse" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_request_picking_type"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/153/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_request_picking_type"><img alt="OCA/stock-logistics-warehouse" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_request_picking_type"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/153/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module adds stock request orders within the Inventory app with a new operation type.</p>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
@@ -395,7 +395,7 @@ ul.auto-toc {
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues">GitHub Issues</a>.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_request_picking_type%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_request_picking_type%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
@@ -410,6 +410,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
||||
<h2><a class="toc-backref" href="#id5">Contributors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Maxime Chambreuil <<a class="reference external" href="mailto:mchambreuil@opensourceintegrators.com">mchambreuil@opensourceintegrators.com</a>></li>
|
||||
<li>Pimolnat Suntian <<a class="reference external" href="mailto:pimolnats@ecosoft.co.th">pimolnats@ecosoft.co.th</a>></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
@@ -421,7 +422,7 @@ mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.</p>
|
||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
||||
<p><a class="reference external" href="https://github.com/max3903"><img alt="max3903" src="https://github.com/max3903.png?size=40px" /></a></p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_request_picking_type">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_request_picking_type">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,117 +1,196 @@
|
||||
<?xml version="1.0" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="stock_request_type_kanban" model="ir.ui.view">
|
||||
<field name="name">stock.picking.type.kanban</field>
|
||||
<field name="model">stock.picking.type</field>
|
||||
<field name="inherit_id" ref="stock.stock_picking_type_kanban"/>
|
||||
<field name="inherit_id" ref="stock.stock_picking_type_kanban" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="code" position="after">
|
||||
<field name="count_sr_todo"/>
|
||||
<field name="count_sr_open"/>
|
||||
<field name="count_sr_late"/>
|
||||
<field name="count_sr_todo" />
|
||||
<field name="count_sr_open" />
|
||||
<field name="count_sr_late" />
|
||||
</field>
|
||||
|
||||
<xpath expr='//div[@name="stock_picking"]' position="after">
|
||||
<div t-if="record.code.raw_value == 'stock_request_order'" t-attf-class="#{kanban_color(record.color.raw_value)}">
|
||||
<div
|
||||
t-if="record.code.raw_value == 'stock_request_order'"
|
||||
t-attf-class="#{kanban_color(record.color.raw_value)}"
|
||||
>
|
||||
<div>
|
||||
<div t-attf-class="o_kanban_card_header">
|
||||
<div class="o_kanban_card_header_title">
|
||||
<a type="object" name="get_stock_request_order_picking_type_action" class="o_primary">
|
||||
<field name="name"/>
|
||||
<a
|
||||
type="object"
|
||||
name="get_stock_request_order_picking_type_action"
|
||||
class="o_primary"
|
||||
>
|
||||
<field name="name" />
|
||||
</a>
|
||||
<div class="o_secondary"><field class="o_secondary" name="warehouse_id"/></div>
|
||||
<div class="o_secondary">
|
||||
<field class="o_secondary" name="warehouse_id" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="o_kanban_manage_button_section">
|
||||
<a class="o_kanban_manage_toggle_button" href="#"><i class="fa fa-ellipsis-v" role="img" aria-label="Manage" title="Manage"/></a>
|
||||
<a class="o_kanban_manage_toggle_button" href="#">
|
||||
<i
|
||||
class="fa fa-ellipsis-v"
|
||||
role="img"
|
||||
aria-label="Manage"
|
||||
title="Manage"
|
||||
/>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container o_kanban_card_content">
|
||||
<div class="row">
|
||||
<div class="col-6 o_kanban_primary_left">
|
||||
<button class="btn btn-primary" name="%(action_picking_dashboard)d" type="action" context="{'search_default_todo': 1}">
|
||||
<span t-if="record.code.raw_value =='stock_request_order'"><t t-esc="record.count_sr_todo.value"/> To Process</span>
|
||||
<button
|
||||
class="btn btn-primary"
|
||||
name="%(action_picking_dashboard)d"
|
||||
type="action"
|
||||
context="{'search_default_todo': 1}"
|
||||
>
|
||||
<span
|
||||
t-if="record.code.raw_value =='stock_request_order'"
|
||||
><t
|
||||
t-esc="record.count_sr_todo.value"
|
||||
/> To Process</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-6 o_kanban_primary_right">
|
||||
<div t-if="record.count_sr_open.raw_value > 0" class="row">
|
||||
<div
|
||||
t-if="record.count_sr_open.raw_value > 0"
|
||||
class="row"
|
||||
>
|
||||
<div class="col-9">
|
||||
<a name="%(action_picking_dashboard)d" type="action" context="{'search_default_inprogress': 1}">
|
||||
<a
|
||||
name="%(action_picking_dashboard)d"
|
||||
type="action"
|
||||
context="{'search_default_inprogress': 1}"
|
||||
>
|
||||
In Progress
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<field name="count_sr_open"/>
|
||||
<field name="count_sr_open" />
|
||||
</div>
|
||||
</div>
|
||||
<div t-if="record.count_sr_late.raw_value > 0" class="row">
|
||||
<div
|
||||
t-if="record.count_sr_late.raw_value > 0"
|
||||
class="row"
|
||||
>
|
||||
<div class="col-9">
|
||||
<a class="oe_kanban_stock_picking_type_list" name="%(action_picking_dashboard)d" type="action" context="{'search_default_late': 1}">
|
||||
<a
|
||||
class="oe_kanban_stock_picking_type_list"
|
||||
name="%(action_picking_dashboard)d"
|
||||
type="action"
|
||||
context="{'search_default_late': 1}"
|
||||
>
|
||||
Late
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-3">
|
||||
<field name="count_sr_late"/>
|
||||
<field name="count_sr_late" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="container o_kanban_card_manage_pane dropdown-menu" role="menu">
|
||||
<div class="row">
|
||||
<div class="col-6 o_kanban_card_manage_section o_kanban_manage_view" name="picking_left_manage_pane">
|
||||
<div role="menuitem" class="o_kanban_card_manage_title">
|
||||
<span>View</span>
|
||||
</div>
|
||||
<div
|
||||
class="container o_kanban_card_manage_pane dropdown-menu"
|
||||
role="menu"
|
||||
>
|
||||
<div class="row">
|
||||
<div
|
||||
class="col-6 o_kanban_card_manage_section o_kanban_manage_view"
|
||||
name="picking_left_manage_pane"
|
||||
>
|
||||
<div
|
||||
role="menuitem"
|
||||
class="o_kanban_card_manage_title"
|
||||
>
|
||||
<span>View</span>
|
||||
</div>
|
||||
<div role="menuitem">
|
||||
<a
|
||||
name="%(action_picking_dashboard)d"
|
||||
type="action"
|
||||
>All</a>
|
||||
</div>
|
||||
<div role="menuitem">
|
||||
<a
|
||||
name="%(action_picking_dashboard)d"
|
||||
type="action"
|
||||
context="{'search_default_todo': 1}"
|
||||
>To Do</a>
|
||||
</div>
|
||||
<div role="menuitem">
|
||||
<a
|
||||
name="%(action_picking_dashboard)d"
|
||||
type="action"
|
||||
context="{'search_default_open': 1}"
|
||||
>In Progress</a>
|
||||
</div>
|
||||
<div role="menuitem">
|
||||
<a
|
||||
name="%(action_picking_dashboard)d"
|
||||
type="action"
|
||||
context="{'search_default_done': 1}"
|
||||
>Done</a>
|
||||
</div>
|
||||
</div>
|
||||
<div role="menuitem">
|
||||
<a name="%(action_picking_dashboard)d" type="action">All</a>
|
||||
</div>
|
||||
<div role="menuitem">
|
||||
<a name="%(action_picking_dashboard)d" type="action" context="{'search_default_todo': 1}">To Do</a>
|
||||
</div>
|
||||
<div role="menuitem">
|
||||
<a name="%(action_picking_dashboard)d" type="action" context="{'search_default_open': 1}">In Progress</a>
|
||||
</div>
|
||||
<div role="menuitem">
|
||||
<a name="%(action_picking_dashboard)d" type="action" context="{'search_default_done': 1}">Done</a>
|
||||
<div
|
||||
class="col-6 o_kanban_card_manage_section o_kanban_manage_new"
|
||||
>
|
||||
<div
|
||||
role="menuitem"
|
||||
class="o_kanban_card_manage_title"
|
||||
>
|
||||
<span>New</span>
|
||||
</div>
|
||||
<div role="menuitem">
|
||||
<a
|
||||
name="%(action_stock_request_order_form)d"
|
||||
type="action"
|
||||
>Stock Request Order</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 o_kanban_card_manage_section o_kanban_manage_new">
|
||||
<div role="menuitem" class="o_kanban_card_manage_title">
|
||||
<span>New</span>
|
||||
<div
|
||||
t-if="widget.editable"
|
||||
class="o_kanban_card_manage_settings row"
|
||||
>
|
||||
<div role="menuitem" aria-haspopup="true" class="col-8">
|
||||
<ul
|
||||
role="menu"
|
||||
class="oe_kanban_colorpicker"
|
||||
data-field="color"
|
||||
/>
|
||||
</div>
|
||||
<div role="menuitem">
|
||||
<a name="%(action_stock_request_order_form)d" type="action">Stock Request Order</a>
|
||||
<div role="menuitem" class="col-4 text-right">
|
||||
<a type="edit">Settings</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div t-if="widget.editable" class="o_kanban_card_manage_settings row">
|
||||
<div role="menuitem" aria-haspopup="true" class="col-8">
|
||||
<ul role="menu" class="oe_kanban_colorpicker" data-field="color"/>
|
||||
</div>
|
||||
<div role="menuitem" class="col-4 text-right">
|
||||
<a type="edit">Settings</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_picking_type_form_inherit_sro" model="ir.ui.view">
|
||||
<field name="name">Operation Types</field>
|
||||
<field name="model">stock.picking.type</field>
|
||||
<field name="inherit_id" ref="stock.view_picking_type_form"/>
|
||||
<field name="inherit_id" ref="stock.view_picking_type_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="show_operations" position="attributes">
|
||||
<attribute name="attrs">{"invisible": [("code", "=", "stock_request_order")]}</attribute>
|
||||
<attribute
|
||||
name="attrs"
|
||||
>{"invisible": [("code", "=", "stock_request_order")]}</attribute>
|
||||
</field>
|
||||
<field name="show_reserved" position="attributes">
|
||||
<attribute name="attrs">{"invisible": [("code", "=", "stock_request_order")]}</attribute>
|
||||
<attribute
|
||||
name="attrs"
|
||||
>{"invisible": [("code", "=", "stock_request_order")]}</attribute>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -1,50 +1,68 @@
|
||||
<odoo>
|
||||
|
||||
<record id="view_stock_request_order_filter" model="ir.ui.view">
|
||||
<field name="name">stock.request.order.select</field>
|
||||
<field name="model">stock.request.order</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Search Stock Request Orders">
|
||||
<field name="name"/>
|
||||
<filter string="To Do" name="todo" domain="[('state','=', 'submitted')]"
|
||||
help="Stock Requests To Do."/>
|
||||
<filter string="In Progress" name="inprogress" domain="[('state', '=', 'open')]"
|
||||
help="Stock Requests in Progress."/>
|
||||
<filter string="Late" domain="['&', ('expected_date', '<', current_date), ('state', 'in', ('submitted', 'open'))]"
|
||||
name="late" help="Late Stock Requests"/>
|
||||
<filter string="Done" name="done" domain="[('state', '=', 'done')]"/>
|
||||
<field name="name" />
|
||||
<filter
|
||||
string="To Do"
|
||||
name="todo"
|
||||
domain="[('state','=', 'submitted')]"
|
||||
help="Stock Requests To Do."
|
||||
/>
|
||||
<filter
|
||||
string="In Progress"
|
||||
name="inprogress"
|
||||
domain="[('state', '=', 'open')]"
|
||||
help="Stock Requests in Progress."
|
||||
/>
|
||||
<filter
|
||||
string="Late"
|
||||
domain="['&', ('expected_date', '<', current_date), ('state', 'in', ('submitted', 'open'))]"
|
||||
name="late"
|
||||
help="Late Stock Requests"
|
||||
/>
|
||||
<filter string="Done" name="done" domain="[('state', '=', 'done')]" />
|
||||
<group expand="0" string="Group By...">
|
||||
<filter string="Expected Date" name="expected_date" domain="[]" context="{'group_by': 'expected_date'}" help="Expected Date by Month"/>
|
||||
<filter string="State" name="state" domain="[]" context="{'group_by': 'state'}"/>
|
||||
<filter
|
||||
string="Expected Date"
|
||||
name="expected_date"
|
||||
domain="[]"
|
||||
context="{'group_by': 'expected_date'}"
|
||||
help="Expected Date by Month"
|
||||
/>
|
||||
<filter
|
||||
string="State"
|
||||
name="state"
|
||||
domain="[]"
|
||||
context="{'group_by': 'state'}"
|
||||
/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_picking_dashboard" model="ir.actions.act_window">
|
||||
<field name="name">Stock Request Orders</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">stock.request.order</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" eval="False"/>
|
||||
<field name="search_view_id" ref="view_stock_request_order_filter"/>
|
||||
<field name="view_id" eval="False" />
|
||||
<field name="search_view_id" ref="view_stock_request_order_filter" />
|
||||
<field name="domain">[('picking_type_id', '=', active_id)]</field>
|
||||
<field name="context">{'default_picking_type_id': active_id}</field>
|
||||
</record>
|
||||
|
||||
<record id="action_stock_request_order_form" model="ir.actions.act_window">
|
||||
<field name="name">Stock Request Orders</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">stock.request.order</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">form</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="menu_stock_request_order"
|
||||
action="stock_request.stock_request_order_action"
|
||||
name="Stock Request Orders"
|
||||
parent="stock.menu_stock_warehouse_mgmt"
|
||||
sequence="30"/>
|
||||
|
||||
<menuitem
|
||||
id="menu_stock_request_order"
|
||||
action="stock_request.stock_request_order_action"
|
||||
name="Stock Request Orders"
|
||||
parent="stock.menu_stock_warehouse_mgmt"
|
||||
sequence="30"
|
||||
/>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user