summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryhu-odoo <yhu@odoo.com>2020-07-20 07:25:09 +0000
committeryhu-odoo <yhu@odoo.com>2020-08-11 12:22:22 +0000
commitc531cb05916d799b660b2eb6f86dc3b340817905 (patch)
treeaffbb6127017d746d40f100c2b335cb7a0496575
parent48c2c1eb9f8f9b112e169a46101cee6cc7424a0a (diff)
[FIX] stock, mrp, purchase: improvement and fix bugs
In stock: 1. remove string of action_show_details button, only show icon 2. late filer have been megered with planning issues filer, update the name. (also in mrp) 3. add width to json_lead_days_popover field to show it properly 4. change inventory adjustment empty screen image. In purchase: 1. in reminder mail, show "undefined" when no date. This will only be shown in preview. When no date, we won't send reminder mail to the vendor. 2. remove old book icon for document in setting. 3. check if there is date_planned when craete a confirm date url 4. RFQs late filter now show all late RFQs with in state "draft", "sent", and "to approve". 5. improve the the words in KIP and empty screen and list view Task 2298950 PR #55155 closes odoo/odoo#55740 Related: odoo/enterprise#12344 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
-rw-r--r--addons/mrp/views/stock_picking_views.xml2
-rw-r--r--addons/purchase/data/mail_template_data.xml2
-rw-r--r--addons/purchase/models/purchase.py6
-rw-r--r--addons/purchase/static/src/xml/purchase_dashboard.xml4
-rw-r--r--addons/purchase/views/purchase_views.xml10
-rw-r--r--addons/purchase/views/res_config_settings_views.xml2
-rw-r--r--addons/stock/static/img/barcode_scanner.pngbin0 -> 38231 bytes
-rw-r--r--addons/stock/static/img/barcode_scanner.svg147
-rw-r--r--addons/stock/static/src/scss/stock_empty_screen.scss5
-rw-r--r--addons/stock/views/stock_move_views.xml2
-rw-r--r--addons/stock/views/stock_orderpoint_views.xml2
-rw-r--r--addons/stock/views/stock_picking_views.xml4
-rw-r--r--addons/stock/wizard/stock_picking_return.py2
13 files changed, 22 insertions, 166 deletions
diff --git a/addons/mrp/views/stock_picking_views.xml b/addons/mrp/views/stock_picking_views.xml
index d5ed2bd00b7..120b07916e0 100644
--- a/addons/mrp/views/stock_picking_views.xml
+++ b/addons/mrp/views/stock_picking_views.xml
@@ -48,7 +48,7 @@
</div>
<div t-if="record.count_mo_late.raw_value > 0" class="row">
<div class="col-9">
- <a class="oe_kanban_stock_picking_type_list" name="%(mrp_production_action_picking_deshboard)d" type="action" context="{'search_default_late': 1, 'default_picking_type_id': active_id}">
+ <a class="oe_kanban_stock_picking_type_list" name="%(mrp_production_action_picking_deshboard)d" type="action" context="{'search_default_planning_issues': 1, 'default_picking_type_id': active_id}">
Late
</a>
</div>
diff --git a/addons/purchase/data/mail_template_data.xml b/addons/purchase/data/mail_template_data.xml
index f60c96c6d0b..fcc5a9038dc 100644
--- a/addons/purchase/data/mail_template_data.xml
+++ b/addons/purchase/data/mail_template_data.xml
@@ -85,6 +85,8 @@
is expected for
% if object.date_planned:
<strong>${format_date(object.date_planned)}</strong>.
+ % else:
+ <strong>undefined</strong>.
% endif
Could you please confirm it will be delivered on time?
</p>
diff --git a/addons/purchase/models/purchase.py b/addons/purchase/models/purchase.py
index bbc37b9c546..1a2f9539cdf 100644
--- a/addons/purchase/models/purchase.py
+++ b/addons/purchase/models/purchase.py
@@ -619,8 +619,8 @@ class PurchaseOrder(models.Model):
result['my_to_send'] = po.search_count([('state', '=', 'draft'), ('user_id', '=', self.env.uid)])
result['all_waiting'] = po.search_count([('state', '=', 'sent'), ('date_order', '>=', fields.Datetime.now())])
result['my_waiting'] = po.search_count([('state', '=', 'sent'), ('date_order', '>=', fields.Datetime.now()), ('user_id', '=', self.env.uid)])
- result['all_late'] = po.search_count([('state', '=', 'sent'), ('date_order', '<', fields.Datetime.now())])
- result['my_late'] = po.search_count([('state', '=', 'sent'), ('date_order', '<', fields.Datetime.now()), ('user_id', '=', self.env.uid)])
+ result['all_late'] = po.search_count([('state', 'in', ['draft', 'sent', 'to approve']), ('date_order', '<', fields.Datetime.now())])
+ result['my_late'] = po.search_count([('state', 'in', ['draft', 'sent', 'to approve']), ('date_order', '<', fields.Datetime.now()), ('user_id', '=', self.env.uid)])
# Calculated values ('avg order value', 'avg days to purchase', and 'total last 7 days') note that 'avg order value' and
# 'total last 7 days' takes into account exchange rate and current company's currency's precision. Min of currency precision
@@ -687,7 +687,7 @@ class PurchaseOrder(models.Model):
if confirm_type in ['reminder', 'reception']:
param = url_encode({
'confirm': confirm_type,
- 'confirmed_date': self.date_planned.date(),
+ 'confirmed_date': self.date_planned and self.date_planned.date(),
})
return self.get_portal_url(query_string='&%s' % param)
return self.get_portal_url()
diff --git a/addons/purchase/static/src/xml/purchase_dashboard.xml b/addons/purchase/static/src/xml/purchase_dashboard.xml
index a3b1dcd6a08..a12d3d1a469 100644
--- a/addons/purchase/static/src/xml/purchase_dashboard.xml
+++ b/addons/purchase/static/src/xml/purchase_dashboard.xml
@@ -56,8 +56,8 @@
</thead>
<tbody>
<tr>
- <td class="o_text">Avg Days to Purchase</td>
- <td><span><t t-esc="values['all_avg_days_to_purchase']"/></span></td>
+ <td class="o_text">Lead Time to Purchase</td>
+ <td><span><t t-esc="values['all_avg_days_to_purchase']"/> &#160;Days</span></td>
<td class="o_text">RFQs Sent Last 7 Days</td>
<td><span><t t-esc="values['all_sent_rfqs']"/></span></td>
</tr>
diff --git a/addons/purchase/views/purchase_views.xml b/addons/purchase/views/purchase_views.xml
index fe642558ba7..fb18cf8bb65 100644
--- a/addons/purchase/views/purchase_views.xml
+++ b/addons/purchase/views/purchase_views.xml
@@ -402,7 +402,7 @@
<filter name="order_date" string="Order Date" date="date_order"/>
<filter name="draft_rfqs" string="Draft RFQs" domain="[('state', '=', 'draft')]"/>
<filter name="waiting_rfqs" string="Waiting RFQs" domain="[('state', '=', 'sent'), ('date_order', '&gt;=', datetime.datetime.now())]"/>
- <filter name="late_rfqs" string="Late RFQs" domain="[('state', '=', 'sent'), ('date_order', '&lt;', datetime.datetime.now())]"/>
+ <filter name="late_rfqs" string="Late RFQs" domain="[('state', 'in', ['draft', 'sent', 'to approve']),('date_order', '&lt;', datetime.datetime.now())]"/>
<separator/>
<filter invisible="1" string="Late Activities" name="activities_overdue"
domain="[('activity_ids.date_deadline', '&lt;', context_today().strftime('%Y-%m-%d'))]"
@@ -543,14 +543,14 @@
<field name="message_unread" invisible="1"/>
<field name="partner_ref" optional="hide"/>
<field name="name" string="Reference" readonly="1" decoration-bf="1"/>
- <field name="date_order" attrs="{'invisible': ['|', '|', ('state', '=', 'purchase'), ('state', '=', 'done'), ('state', '=', 'cancel')]}"
- invisible="not context.get('quotation_only', False)" widget="remaining_days" optional="show"/>
<field name="date_approve" invisible="context.get('quotation_only', False)" optional="show"/>
<field name="partner_id" readonly="1"/>
<field name="company_id" readonly="1" options="{'no_create': True}"
groups="base.group_multi_company" optional="show"/>
<field name="date_planned" invisible="context.get('quotation_only', False)" optional="show"/>
<field name="user_id" optional="show" widget="many2one_avatar_user"/>
+ <field name="date_order" attrs="{'invisible': ['|', '|', ('state', '=', 'purchase'), ('state', '=', 'done'), ('state', '=', 'cancel')]}"
+ invisible="not context.get('quotation_only', False)" widget="remaining_days" optional="show"/>
<field name="activity_ids" widget="list_activity" optional="show"/>
<field name="origin" optional="show"/>
<field name="amount_untaxed" sum="Total Untaxed amount" string="Untaxed" widget="monetary" optional="hide"/>
@@ -579,12 +579,12 @@
<field name="message_unread" invisible="1"/>
<field name="partner_ref" optional="hide"/>
<field name="name" string="Reference" readonly="1" decoration-bf="1"/>
- <field name="date_order" invisible="not context.get('quotation_only', False)" optional="show"/>
<field name="date_approve" widget="date" invisible="context.get('quotation_only', False)" optional="show"/>
<field name="partner_id"/>
<field name="company_id" groups="base.group_multi_company" options="{'no_create': True}" optional="show"/>
<field name="date_planned" invisible="context.get('quotation_only', False)" optional="show"/>
<field name="user_id" widget="many2one_avatar_user" optional="show"/>
+ <field name="date_order" invisible="not context.get('quotation_only', False)" optional="show"/>
<field name="activity_ids" widget="list_activity" optional="show"/>
<field name="origin" optional="show"/>
<field name="amount_untaxed" sum="Total Untaxed amount" string="Untaxed" widget="monetary" optional="hide"/>
@@ -626,7 +626,7 @@
<p class="o_view_nocontent_smiling_face">
Create a request for quotation
</p><p>
- The requests for quotation are documents that will be sent to your suppliers to request prices for different products you consider buying.
+ Requests for quotation are documents that will be sent to your suppliers to request prices for different products you consider buying.
Once an agreement has been found with the supplier, they will be confirmed and turned into purchase orders.
</p>
</field>
diff --git a/addons/purchase/views/res_config_settings_views.xml b/addons/purchase/views/res_config_settings_views.xml
index c143f2088d7..ee7a3d1bf66 100644
--- a/addons/purchase/views/res_config_settings_views.xml
+++ b/addons/purchase/views/res_config_settings_views.xml
@@ -126,7 +126,7 @@
</div>
<div class="o_setting_right_pane">
<label for="group_product_variant"/>
- <a href="https://www.odoo.com/documentation/user/13.0/sales/products_prices/products/variants.html" title="Documentation" class="o_doc_link fa fa-lg fa-book" target="_blank"></a>
+ <a href="https://www.odoo.com/documentation/user/13.0/sales/products_prices/products/variants.html" title="Documentation" class="o_doc_link" target="_blank"></a>
<div class="text-muted">
Purchase variants of a product using attributes (size, color, etc.)
</div>
diff --git a/addons/stock/static/img/barcode_scanner.png b/addons/stock/static/img/barcode_scanner.png
new file mode 100644
index 00000000000..e8f7a7fa5dd
--- /dev/null
+++ b/addons/stock/static/img/barcode_scanner.png
Binary files differ
diff --git a/addons/stock/static/img/barcode_scanner.svg b/addons/stock/static/img/barcode_scanner.svg
deleted file mode 100644
index 21d9f2fb611..00000000000
--- a/addons/stock/static/img/barcode_scanner.svg
+++ /dev/null
@@ -1,147 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<svg viewBox="0 0 432.35657 322.22568" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
- <defs>
- <filter id="l">
- <feGaussianBlur stdDeviation="2.6678"/>
- </filter>
- <filter id="k">
- <feGaussianBlur stdDeviation="2.1943"/>
- </filter>
- <linearGradient id="b">
- <stop stop-color="#60574e" offset="0"/>
- <stop stop-color="#40423f" offset="1"/>
- </linearGradient>
- <linearGradient id="j" x1="903.86" x2="953.55" y1="520.38" y2="454.76" gradientUnits="userSpaceOnUse">
- <stop stop-color="#787973" offset="0"/>
- <stop stop-color="#787973" stop-opacity="0" offset="1"/>
- </linearGradient>
- <linearGradient id="i" x1="880.16" x2="903.36" y1="562.9" y2="516.04" gradientUnits="userSpaceOnUse">
- <stop stop-color="#919a9a" offset="0"/>
- <stop stop-color="#a3a49f" offset="1"/>
- </linearGradient>
- <linearGradient id="h" x1="1054.9" x2="907.68" y1="627.42" y2="541.41" gradientUnits="userSpaceOnUse">
- <stop stop-color="#26383f" offset="0"/>
- <stop stop-color="#485d60" offset="1"/>
- </linearGradient>
- <linearGradient id="g" x1="864.05" x2="1064.8" y1="547.58" y2="648.35" gradientUnits="userSpaceOnUse">
- <stop stop-color="#2b3439" offset="0"/>
- <stop stop-color="#2b3439" stop-opacity="0" offset="1"/>
- </linearGradient>
- <linearGradient id="f" x1="161.82" x2="210.24" y1="450.94" y2="354.1" gradientUnits="userSpaceOnUse">
- <stop stop-color="#f00" offset="0"/>
- <stop stop-color="#f00" stop-opacity="0" offset="1"/>
- </linearGradient>
- <radialGradient id="a" cx="505.71" cy="300.82" r="163.3" gradientTransform="matrix(.81681 0 0 .63065 545.64 276.05)" gradientUnits="userSpaceOnUse">
- <stop stop-color="#55504a" offset="0"/>
- <stop stop-color="#2f3b39" offset="1"/>
- </radialGradient>
- <radialGradient id="d" cx="1103.2" cy="548.19" r="31.89" gradientTransform="matrix(2.4989 3.3505e-6 -2.8228e-6 2.1054 -1653.6 -613.76)" gradientUnits="userSpaceOnUse">
- <stop stop-color="#aeaaa7" offset="0"/>
- <stop stop-color="#112325" offset=".2345"/>
- <stop stop-color="#01040d" offset="1"/>
- </radialGradient>
- <radialGradient id="e" cx="1143" cy="469.41" r="49.737" gradientTransform="matrix(1.0769 -.28855 .20074 .74916 -182.09 453.41)" gradientUnits="userSpaceOnUse" xlink:href="#b"/>
- <radialGradient id="c" cx="646.11" cy="241.22" r="163.3" gradientTransform="matrix(.81681 0 0 .63065 545.64 276.05)" gradientUnits="userSpaceOnUse" xlink:href="#b"/>
- </defs>
- <g transform="translate(-8.4559 -154.33)">
- <g transform="matrix(-1.0913 -.58597 1.5339 -.15429 -323.55 594.23)">
- <path d="m90.251 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m98.063 466.43h-0.97656v-35.156h0.97656v35.156"/>
- <path d="m95.133 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m101.03 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m103.96 466.43h-0.99609v-35.156h0.99609v35.156"/>
- <path d="m107.87 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m118.65 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m114.76 466.43h-0.99609v-35.156h0.99609v35.156"/>
- <path d="m112.79 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m129.43 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m126.52 466.43h-0.99609v-35.156h0.99609v35.156"/>
- <path d="m123.57 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m133.38 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m140.23 466.43h-0.99609v-35.156h0.99609v35.156"/>
- <path d="m137.28 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m144.16 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m147.09 466.43h-0.99609v-35.156h0.99609v35.156"/>
- <path d="m150.99 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m154.94 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m157.87 466.43h-0.97656v-35.156h0.97656v35.156"/>
- <path d="m162.75 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m169.63 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m164.74 466.43h-0.97656v-35.156h0.97656v35.156"/>
- <path d="m172.56 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m180.41 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m177.48 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m184.31 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m187.28 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m194.14 466.43h-0.99609v-35.156h0.99609v35.156"/>
- <path d="m191.19 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m198.06 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m205.88 466.43h-0.97656v-35.156h0.97656v35.156"/>
- <path d="m202.95 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m216.66 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m207.87 466.43h-0.97656v-35.156h0.97656v35.156"/>
- <path d="m212.75 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m219.63 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m222.56 466.43h-0.99609v-35.156h0.99609v35.156"/>
- <path d="m226.46 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m237.24 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m233.36 466.43h-0.99609v-35.156h0.99609v35.156"/>
- <path d="m231.38 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m241.19 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m244.12 466.43h-0.97656v-35.156h0.97656v35.156"/>
- <path d="m249 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m255.88 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m252.95 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m259.78 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m269.59 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m265.7 466.43h-0.99609v-35.156h0.99609v35.156"/>
- <path d="m263.73 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m273.53 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m276.46 466.43h-0.99609v-35.156h0.99609v35.156"/>
- <path d="m280.37 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m284.31 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m287.24 466.43h-0.97656v-35.156h0.97656v35.156"/>
- <path d="m292.13 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m301.93 466.43h-1.9531v-35.156h1.9531v35.156"/>
- <path d="m299.02 466.43h-0.99609v-35.156h0.99609v35.156"/>
- <path d="m296.07 466.43h-2.9297v-35.156h2.9297v35.156"/>
- <path d="m99.019 485.23-0.27817-0.10699c-0.8345 1.348-1.2411 1.4122-2.0328 1.4122h-5.114l3.5948-3.766c0.94149-1.0057 2.7389-2.9529 2.7389-5.221 0-2.3965-1.9258-3.8516-3.873-3.8516-1.883 0-3.8944 1.0271-4.5363 4.2581l0.44935 0.10699c0.47075-1.1555 1.1127-2.7817 3.0598-2.7817 2.5249 0 3.0598 1.9686 3.0598 3.0598 0 1.6048-0.9201 3.5306-2.7817 5.5206l-3.8088 4.0441v0.25677h8.345l1.1769-2.9315"/>
- <path d="m102.83 481.1c1.4764-0.0428 2.0114 0.0642 2.7817 0.47075 1.3694 0.70611 1.6262 2.2895 1.6262 2.8245 0 1.6048-0.8773 3.2952-2.8673 3.2952-1.2624 0-2.0756-1.1983-3.0598-1.1983-0.34236 0-0.8345 0.14978-0.8345 0.74891 0 1.1127 1.8616 1.2197 2.3751 1.2197 3.3594 0 5.9271-1.883 5.9271-4.9214 0-2.8245-1.8188-3.5734-2.7175-3.9585 1.4122-0.9201 1.99-1.8402 1.99-2.9957 0-0.87729-0.57773-2.8887-3.338-2.8887-1.4336 0-3.338 0.66332-4.1939 3.4664l0.32097 0.0856c0.32096-0.59913 1.2197-2.2681 3.1668-2.2681 1.5834 0 2.3537 1.1341 2.3537 2.2253 0 1.9686-1.6048 2.9956-3.552 3.6162l0.0214 0.27817"/>
- <path d="m114.79 481.49c2.4607 1.7546 3.3594 2.3965 3.3594 3.9799 0 1.4978-1.0057 2.3965-2.3537 2.3965-1.7332 0-2.7175-1.3908-2.7175-3.0384 0-1.9472 1.0271-2.7817 1.7118-3.338m-3.338 3.552c0 1.669 1.4122 3.4236 4.0655 3.4236 3.552 0 4.2581-2.3965 4.2581-3.5092 0-1.4336-0.44936-2.6747-3.3166-4.7288 1.1555-0.62053 2.8673-1.5192 2.8673-3.4878 0-1.6262-1.3266-3.0384-3.7446-3.0384-1.8402 0-4.0013 1.1555-4.0013 3.3166 0 1.7332 0.85591 2.4607 2.6533 4.0441-1.9044 1.455-2.7817 2.1184-2.7817 3.9799m1.7118-8.5804c0-1.0271 0.68472-2.1612 2.2895-2.1612 1.6476 0 2.3965 1.1555 2.3965 2.3323 0 1.883-1.1983 2.6747-2.0114 3.2096-0.77031-0.49215-2.6747-1.7118-2.6747-3.3808"/>
- <path d="m122.21 488.63c5.435-0.34236 8.559-4.4079 8.559-8.9442 0-3.5734-2.0542-5.9913-4.686-5.9913-2.7817 0-4.4935 2.3109-4.4935 5.1568 0 1.7546 0.98428 4.2367 3.8516 4.2367 1.0699 0 2.204-0.38516 3.1454-1.1769l0.0428 0.0428c-0.12838 0.53494-1.3052 5.3922-6.4834 6.2481l0.0642 0.42795m6.4834-8.0669c0 0.38516-0.0642 0.64193-0.34236 0.8559-0.44934 0.36376-1.348 0.74892-2.0542 0.74892-2.2681 0-2.7389-2.5035-2.7389-4.1297 0-1.7546 0.49214-3.7446 2.2895-3.7446 2.8459 0 2.8459 4.1725 2.8459 5.435v0.8345"/>
- <path d="m135.52 475.69h4.1939c0.23537 0 0.42795 0 0.49214-0.19258l0.81311-1.9044-0.19258-0.14978c-0.23537 0.32096-0.42795 0.55633-0.98429 0.55633h-4.4721l-2.3323 5.0712c-0.0642 0.14978 0 0.27816 0.12839 0.27816 2.3109 0.0856 6.0983 1.0913 6.0983 4.5149 0 2.6105-1.5834 3.8088-2.9743 3.8088-1.1555 0-1.7332-1.3266-3.1026-1.3266-0.8559 0-0.8559 0.62053-0.8559 0.83451 0 0.77031 1.0057 1.2838 2.6961 1.2838 3.3808 0 5.7345-2.2681 5.7345-5.114 0-1.9044-0.23538-2.5249-1.1555-3.6376-1.2624-1.5406-3.2738-1.9044-4.9856-2.2039l0.89869-1.8188"/>
- <path d="m145.62 481.1c1.4764-0.0428 2.0114 0.0642 2.7817 0.47075 1.3694 0.70611 1.6262 2.2895 1.6262 2.8245 0 1.6048-0.8773 3.2952-2.8673 3.2952-1.2624 0-2.0756-1.1983-3.0598-1.1983-0.34236 0-0.8345 0.14978-0.8345 0.74891 0 1.1127 1.8616 1.2197 2.3751 1.2197 3.3594 0 5.9271-1.883 5.9271-4.9214 0-2.8245-1.8188-3.5734-2.7175-3.9585 1.4122-0.9201 1.99-1.8402 1.99-2.9957 0-0.87729-0.57774-2.8887-3.338-2.8887-1.4336 0-3.338 0.66332-4.1939 3.4664l0.32096 0.0856c0.32097-0.59913 1.2197-2.2681 3.1668-2.2681 1.5834 0 2.3537 1.1341 2.3537 2.2253 0 1.9686-1.6048 2.9956-3.552 3.6162l0.0214 0.27817"/>
- <path d="m163.15 483.22h-2.1826v-9.5219h-0.94149l-6.7188 9.5219v1.3694h6.0127v3.5734h1.6476v-3.5734h2.1826v-1.3694m-3.8516 0h-5.1354l5.0926-7.2752h0.0428v7.2752"/>
- <path d="m169.1 474.25c2.7389 0 2.7817 5.3708 2.7817 6.8258 0 1.6904-0.0428 6.8258-2.7817 6.8258s-2.7817-5.0926-2.7817-6.8258c0-1.455 0.0428-6.8258 2.7817-6.8258m0-0.55633c-3.9371 0-4.8358 4.8572-4.8358 7.3821 0 2.5891 0.8987 7.3822 4.8358 7.3822s4.8358-4.793 4.8358-7.3822c0-2.5249-0.8987-7.3821-4.8358-7.3821"/>
- <path d="m184.05 474h-7.9171l-0.34236 0.94149-0.92009 2.204 0.36376 0.17118c0.70611-1.1127 1.0913-1.7332 2.4821-1.7332h4.6433l-4.2367 12.753h1.3908l4.5363-13.994v-0.34236"/>
- <path d="m189.02 475.69h4.1939c0.23537 0 0.42795 0 0.49214-0.19258l0.81311-1.9044-0.19258-0.14978c-0.23538 0.32096-0.42795 0.55633-0.98429 0.55633h-4.4721l-2.3323 5.0712c-0.0642 0.14978 0 0.27816 0.12838 0.27816 2.3109 0.0856 6.0983 1.0913 6.0983 4.5149 0 2.6105-1.5834 3.8088-2.9743 3.8088-1.1555 0-1.7332-1.3266-3.1026-1.3266-0.8559 0-0.8559 0.62053-0.8559 0.83451 0 0.77031 1.0057 1.2838 2.6961 1.2838 3.3808 0 5.7345-2.2681 5.7345-5.114 0-1.9044-0.23537-2.5249-1.1555-3.6376-1.2624-1.5406-3.2738-1.9044-4.9856-2.2039l0.89869-1.8188"/>
- <path d="m206.01 485.23-0.27816-0.10699c-0.83451 1.348-1.2411 1.4122-2.0328 1.4122h-5.114l3.5948-3.766c0.94149-1.0057 2.7389-2.9529 2.7389-5.221 0-2.3965-1.9258-3.8516-3.873-3.8516-1.883 0-3.8944 1.0271-4.5363 4.2581l0.44935 0.10699c0.47075-1.1555 1.1127-2.7817 3.0598-2.7817 2.5249 0 3.0598 1.9686 3.0598 3.0598 0 1.6048-0.92009 3.5306-2.7817 5.5206l-3.8088 4.0441v0.25677h8.345l1.1769-2.9315"/>
- <path d="m209.07 488.16h5.9057v-0.32096c-1.6048 0-2.0328-0.23537-2.0328-1.2624v-12.839l-0.17118-0.0428-3.8516 1.9472v0.29957c1.1983-0.47075 1.1983-0.47075 1.455-0.47075 0.72751 0 0.72751 0.55634 0.72751 1.0057v9.6931c0 1.5834-0.79171 1.6262-2.0328 1.669v0.32096"/>
- <path d="m220.51 481.1c1.4764-0.0428 2.0114 0.0642 2.7817 0.47075 1.3694 0.70611 1.6262 2.2895 1.6262 2.8245 0 1.6048-0.8773 3.2952-2.8673 3.2952-1.2624 0-2.0756-1.1983-3.0598-1.1983-0.34236 0-0.83451 0.14978-0.83451 0.74891 0 1.1127 1.8616 1.2197 2.3751 1.2197 3.3594 0 5.9271-1.883 5.9271-4.9214 0-2.8245-1.8188-3.5734-2.7175-3.9585 1.4122-0.9201 1.99-1.8402 1.99-2.9957 0-0.87729-0.57774-2.8887-3.338-2.8887-1.4336 0-3.338 0.66332-4.1939 3.4664l0.32096 0.0856c0.32096-0.59913 1.2197-2.2681 3.1668-2.2681 1.5834 0 2.3537 1.1341 2.3537 2.2253 0 1.9686-1.6048 2.9956-3.552 3.6162l0.0214 0.27817"/>
- <path d="m232.48 481.49c2.4607 1.7546 3.3594 2.3965 3.3594 3.9799 0 1.4978-1.0057 2.3965-2.3537 2.3965-1.7332 0-2.7175-1.3908-2.7175-3.0384 0-1.9472 1.0271-2.7817 1.7118-3.338m-3.338 3.552c0 1.669 1.4122 3.4236 4.0655 3.4236 3.552 0 4.2581-2.3965 4.2581-3.5092 0-1.4336-0.44935-2.6747-3.3166-4.7288 1.1555-0.62053 2.8673-1.5192 2.8673-3.4878 0-1.6262-1.3266-3.0384-3.7446-3.0384-1.8402 0-4.0013 1.1555-4.0013 3.3166 0 1.7332 0.8559 2.4607 2.6533 4.0441-1.9044 1.455-2.7817 2.1184-2.7817 3.9799m1.7118-8.5804c0-1.0271 0.68473-2.1612 2.2895-2.1612 1.6476 0 2.3965 1.1555 2.3965 2.3323 0 1.883-1.1983 2.6747-2.0114 3.2096-0.77032-0.49215-2.6747-1.7118-2.6747-3.3808"/>
- <path d="m248.74 483.22h-2.1825v-9.5219h-0.94149l-6.7188 9.5219v1.3694h6.0127v3.5734h1.6476v-3.5734h2.1825v-1.3694m-3.8516 0h-5.1354l5.0926-7.2752h0.0428v7.2752"/>
- <path d="m258.94 474h-7.9171l-0.34236 0.94149-0.9201 2.204 0.36376 0.17118c0.70612-1.1127 1.0913-1.7332 2.4821-1.7332h4.6433l-4.2367 12.753h1.3908l4.5363-13.994v-0.34236"/>
- <path d="m264.57 481.49c2.4607 1.7546 3.3594 2.3965 3.3594 3.9799 0 1.4978-1.0057 2.3965-2.3537 2.3965-1.7332 0-2.7175-1.3908-2.7175-3.0384 0-1.9472 1.0271-2.7817 1.7118-3.338m-3.338 3.552c0 1.669 1.4122 3.4236 4.0655 3.4236 3.552 0 4.2581-2.3965 4.2581-3.5092 0-1.4336-0.44935-2.6747-3.3166-4.7288 1.1555-0.62053 2.8673-1.5192 2.8673-3.4878 0-1.6262-1.3266-3.0384-3.7446-3.0384-1.8402 0-4.0013 1.1555-4.0013 3.3166 0 1.7332 0.8559 2.4607 2.6533 4.0441-1.9044 1.455-2.7817 2.1184-2.7817 3.9799m1.7118-8.5804c0-1.0271 0.68472-2.1612 2.2895-2.1612 1.6476 0 2.3965 1.1555 2.3965 2.3323 0 1.883-1.1983 2.6747-2.0114 3.2096-0.77031-0.49215-2.6747-1.7118-2.6747-3.3808"/>
- <path d="m274.01 481.1c1.4764-0.0428 2.0114 0.0642 2.7817 0.47075 1.3694 0.70611 1.6262 2.2895 1.6262 2.8245 0 1.6048-0.8773 3.2952-2.8673 3.2952-1.2624 0-2.0756-1.1983-3.0598-1.1983-0.34236 0-0.8345 0.14978-0.8345 0.74891 0 1.1127 1.8616 1.2197 2.3751 1.2197 3.3594 0 5.9271-1.883 5.9271-4.9214 0-2.8245-1.8188-3.5734-2.7175-3.9585 1.4122-0.9201 1.99-1.8402 1.99-2.9957 0-0.87729-0.57773-2.8887-3.338-2.8887-1.4336 0-3.338 0.66332-4.1939 3.4664l0.32097 0.0856c0.32096-0.59913 1.2197-2.2681 3.1668-2.2681 1.5834 0 2.3537 1.1341 2.3537 2.2253 0 1.9686-1.6048 2.9956-3.552 3.6162l0.0214 0.27817"/>
- <path d="m291.53 483.22h-2.1826v-9.5219h-0.94149l-6.7188 9.5219v1.3694h6.0127v3.5734h1.6476v-3.5734h2.1826v-1.3694m-3.8516 0h-5.1354l5.0926-7.2752h0.0428v7.2752"/>
- <path d="m293.39 488.63c5.435-0.34236 8.559-4.4079 8.559-8.9442 0-3.5734-2.0542-5.9913-4.6861-5.9913-2.7817 0-4.4935 2.3109-4.4935 5.1568 0 1.7546 0.98429 4.2367 3.8516 4.2367 1.0699 0 2.2039-0.38516 3.1454-1.1769l0.0428 0.0428c-0.12839 0.53494-1.3053 5.3922-6.4834 6.2481l0.0642 0.42795m6.4834-8.0669c0 0.38516-0.0642 0.64193-0.34236 0.8559-0.44935 0.36376-1.348 0.74892-2.0542 0.74892-2.2681 0-2.7389-2.5035-2.7389-4.1297 0-1.7546 0.49214-3.7446 2.2895-3.7446 2.8459 0 2.8459 4.1725 2.8459 5.435v0.8345"/>
- </g>
- <g transform="translate(1,-3)">
- <g transform="translate(-764.52 -252.29)">
- <path d="m878.74 563.71s0.6371-8.9194 5.0968-16.565 21.024-35.678 28.669-50.968 48.42-58.613 72.629-57.976 38.863 8.2823 54.154 3.8226 68.807-36.952 82.186-31.855 84.734 42.049 82.823 50.968-7.0081 25.484-24.847 31.855-26.758 15.927-35.04 19.113-26.121 2.5484-26.121 8.2823-14.653 42.686-27.395 56.702-28.67 50.968-35.04 59.25-14.653 26.758-21.024 24.21-13.379-7.0081-17.839-14.016-114.04-71.355-119.77-74.541-14.653-5.7339-18.476-8.2823z" fill="url(#a)"/>
- <path d="m902.16 515.34c-7.3765 13.144-15.403 26.824-18.312 31.812-4.4597 7.6452-5.0938 16.562-5.0938 16.562 3.8226 2.5484 12.735 5.0958 18.469 8.2812s115.32 67.523 119.78 74.531 11.442 11.452 17.812 14 14.66-15.905 21.031-24.188c2.5341-3.2942 6.6191-11.163 11.375-20.281l-165.06-100.72z" fill="url(#h)"/>
- <path d="m962.69 446.03c-21.503 13.072-44.623 39.028-50.188 50.156-2.6552 5.3104-6.3884 12.191-10.312 19.188l3.8125 2.3125c7.5784-13.038 16.44-26.964 26.25-39.344 9.9364-12.539 20.767-23.491 30.438-32.312z" fill="url(#j)"/>
- <path d="m902.16 515.34c-7.3765 13.144-15.403 26.824-18.312 31.812-4.2735 7.326-5.0064 15.616-5.0625 16.312 0.13345 0.16637 0.27053 0.33353 0.40625 0.5 0.32959 0.20174 0.67683 0.42268 1.0625 0.625 3.7924-5.379 12.948-24.875 25.75-46.906l-3.8438-2.3438z" fill="url(#i)"/>
- <path d="m1202 456.75c-13.844 1.825-53.76 2.4125-64.781 4.0938-13.29 2.0272-32.204 11.493-33.781 23.656s10.345 26.274 10.345 26.274 1.2989-13.368 4.749-15.68c7.8679-5.2731 15.424-2.0748 25.281-4.5312 9.3554-2.3313 20.397-11.278 26.656-13.719 15.296-7.7835 26.573-15.549 32.25-19.281-0.2239-0.26828-0.452-0.52863-0.7187-0.8125z" fill="url(#e)"/>
- <path d="m1028.5,657.3125c-.6628-.39743-1.3182-.80699-1.9688-1.25-.011.0124-.02.0502-.031.0625 .6583.44899 1.3357.78685 2,1.1875z" fill="url(#a)"/>
- <path d="m1030.875,658.6875c-.1608-.0829-.308-.16461-.4688-.25 .1505.0802.2865.20315.4376.28125l.031-.0312z" fill="url(#a)"/>
- <path d="m1060.4 611.91-7.8125-4.7812c-2.8189 5.9344-4.9041 10.753-5 12-0.2981 3.8759-14.28 29.489-21.031 36.938 0.6506 0.44301 1.306 0.85257 1.9688 1.25 0.6321 0.38126 1.2654 0.78363 1.9062 1.125 0.1608 0.0854 0.308 0.16712 0.4688 0.25 2.8012-4.4054 16.878-26.59 29.5-46.781z" fill="#222a32"/>
- <path d="m1113.7 510.59c-0.1499 0.0196 0.6171 2.151 0.7964 3.4052 0.9556 6.6895-19.134 32.815-33.469 47.469-10.018 10.241-21.895 31.883-28.438 45.656l7.8125 4.7812c10.038-16.057 19.249-31.005 20.312-33.531 2.5484-6.0524 30.902-44.279 34.406-50.969 2.8469-5.4353-0.7724-16.896-1.4214-16.812z" fill="url(#d)"/>
- <path d="m1103 413.12c-19.627 7.0518-47.456 22.725-60.5 27.781 0.245 0.26719 0.5142 0.55153 0.8124 0.8125 0 0 18.013-7e-3 34.906-10.594 12.588-7.8888 17.94-11.533 24.781-18z" fill="url(#c)"/>
- <path d="m878.91 562.16c-0.13465 0.98667-0.15625 1.5625-0.15625 1.5625 3.8226 2.5484 12.735 5.0958 18.469 8.2812 4.2724 2.3736 66.174 38.675 99.312 59.938-32.701-21.323-97.575-62.881-101.88-65.031-5.679-2.8395-10.095-3.8033-15.75-4.75zm127.31 76.125c4.5908 3.0916 7.967 5.5362 9.6562 7.0625-0.2587-0.34927-0.6611-0.84204-0.8125-1.0312-0.2021-0.25268-3.8751-2.7516-8.8437-6.0312zm12.062 10.062c4.4484 5.962 10.734 9.8685 16.531 12.188 0.8835 0.3534 1.8029 0.27749 2.75-0.0937-1.8198-1.5492-4.2747-3.0756-7.5-4.0312-5.2625-1.5593-9.2153-5.1484-11.781-8.0625z" fill="url(#g)"/>
- </g>
- <path d="m53.372 351.61-18.829 1.136 220.44 120.41 13.732-1.7419z" fill="#f00" filter="url(#l)"/>
- <path d="m124.17 307.55-80.848 44.642 217.25 118.5 6.7122-79.136z" fill="url(#f)" filter="url(#k)"/>
- </g>
- </g>
-</svg>
diff --git a/addons/stock/static/src/scss/stock_empty_screen.scss b/addons/stock/static/src/scss/stock_empty_screen.scss
index b94795ce002..44187f77c58 100644
--- a/addons/stock/static/src/scss/stock_empty_screen.scss
+++ b/addons/stock/static/src/scss/stock_empty_screen.scss
@@ -1,8 +1,9 @@
.o_view_nocontent {
&_barcode_scanner:before {
@extend %o-nocontent-init-image;
- @include size(180px, 180px);
- background: transparent url(/stock/static/img/barcode_scanner.svg) no-repeat center;
+ @include size(250px, 250px);
+ background: transparent url(/stock/static/img/barcode_scanner.png) no-repeat center;
+ background-size: 250px 250px;
}
&_replenishment:before {
diff --git a/addons/stock/views/stock_move_views.xml b/addons/stock/views/stock_move_views.xml
index dc20bbfac1e..3b4b758a241 100644
--- a/addons/stock/views/stock_move_views.xml
+++ b/addons/stock/views/stock_move_views.xml
@@ -468,7 +468,7 @@
<field name="arch" type="xml">
<tree decoration-muted="state == 'cancel'" default_order='date_expected, picking_id, sequence' string="Moves" create="0">
<field name="date_expected" widget='date'/>
- <field name="date" string="Creation date" widget="date" optional="hide"/>
+ <field name="date" string="Creation Date" widget="date" optional="hide"/>
<field name="picking_id" string="Reference" invisible="1"/>
<field name="sequence" invisible="1"/>
<field name="origin" optional="show"/>
diff --git a/addons/stock/views/stock_orderpoint_views.xml b/addons/stock/views/stock_orderpoint_views.xml
index 5d4790e3d72..49f3cff16a0 100644
--- a/addons/stock/views/stock_orderpoint_views.xml
+++ b/addons/stock/views/stock_orderpoint_views.xml
@@ -54,7 +54,7 @@
<field name="product_min_qty" optional="show"/>
<field name="product_max_qty" optional="show"/>
<field name="qty_multiple" optional="hide"/>
- <field name="json_lead_days_popover" optional="show" nolabel="1" string="Forecast Description" widget="popover_widget" attrs="{'invisible': [('id', '=', False)]}"/>
+ <field name="json_lead_days_popover" optional="show" nolabel="1" string="Forecast Description" width="10px" widget="popover_widget" attrs="{'invisible': [('id', '=', False)]}"/>
<field name="qty_to_order"/>
<field name="product_uom_name" string="UoM" groups="uom.group_uom"/>
<field name="company_id" optional="hide" readonly="1" groups="base.group_multi_company"/>
diff --git a/addons/stock/views/stock_picking_views.xml b/addons/stock/views/stock_picking_views.xml
index 063dc89b02b..30d75b9e29e 100644
--- a/addons/stock/views/stock_picking_views.xml
+++ b/addons/stock/views/stock_picking_views.xml
@@ -375,7 +375,7 @@
<field name="json_forecast" string="Reserved" attrs="{'column_invisible': ['|', ('parent.picking_type_code', '!=', 'outgoing'), ('parent.state','=', 'done')]}" widget="forecast_widget"/>
<field name="quantity_done" string="Done" attrs="{'readonly': [('is_quantity_done_editable', '=', False)]}"/>
<field name="product_uom" attrs="{'readonly': [('state', '!=', 'draft'), ('additional', '=', False)]}" options="{'no_open': True, 'no_create': True}" string="Unit of Measure" groups="uom.group_uom"/>
- <button name="action_show_details" string="Register lots, packs, location" type="object" icon="fa-list" width="0.1"
+ <button name="action_show_details" type="object" icon="fa-list" width="0.1"
attrs="{'invisible': [('show_details_visible', '=', False)]}" options='{"warn": true}'/>
<button name="action_assign_serial" type="object"
icon="fa-plus-square"
@@ -578,7 +578,7 @@
<field name="type">ir.actions.act_window</field>
<field name="view_mode">tree,kanban,form,calendar</field>
<field name="domain"></field>
- <field name="context">{'contact_display': 'partner_address', 'search_default_late': 1}</field>
+ <field name="context">{'contact_display': 'partner_address', 'search_default_planning_issues': 1}</field>
<field name="search_view_id" ref="view_picking_internal_search"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
diff --git a/addons/stock/wizard/stock_picking_return.py b/addons/stock/wizard/stock_picking_return.py
index fcf3f30382a..c07b0948f64 100644
--- a/addons/stock/wizard/stock_picking_return.py
+++ b/addons/stock/wizard/stock_picking_return.py
@@ -179,7 +179,7 @@ class ReturnPicking(models.TransientModel):
'search_default_assigned': False,
'search_default_confirmed': False,
'search_default_ready': False,
- 'search_default_late': False,
+ 'search_default_planning_issues': False,
'search_default_available': False,
})
return {