Merge PR #1873 into 14.0

Signed-off-by etobella
This commit is contained in:
OCA-git-bot
2023-10-29 20:27:05 +00:00
39 changed files with 82 additions and 131 deletions

View File

@@ -1,8 +1,7 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.14.2
_commit: v1.17.2
_src_path: gh:oca/oca-addons-repo-template
ci: GitHub
dependency_installation_mode: PIP
generate_requirements_txt: true
github_check_license: true
github_ci_extra_env: {}
@@ -11,6 +10,7 @@ github_enable_makepot: true
github_enable_stale_action: true
github_enforce_dev_status_compatibility: true
include_wkhtmltopdf: false
odoo_test_flavor: Both
odoo_version: 14.0
org_name: Odoo Community Association (OCA)
org_slug: OCA
@@ -19,6 +19,4 @@ repo_description: Odoo Warehouse Management Addons
repo_name: Stock Logistics Warehouse modules
repo_slug: stock-logistics-warehouse
repo_website: https://github.com/OCA/stock-logistics-warehouse
travis_apt_packages: []
travis_apt_sources: []

View File

@@ -22,6 +22,7 @@ globals:
odoo: readonly
openerp: readonly
owl: readonly
luxon: readonly
# Styling is handled by Prettier, so we only need to enable AST rules;
# see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890

View File

@@ -13,8 +13,10 @@ jobs:
pre-commit:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: Get python version
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v1
@@ -25,6 +27,15 @@ jobs:
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files --show-diff-on-failure --color=always
env:
# Consider valid a PR that changes README fragments but doesn't
# change the README.rst file itself. It's not really a problem
# because the bot will update it anyway after merge. This way, we
# lower the barrier for functional contributors that want to fix the
# readme fragments, while still letting developers get README
# auto-generated (which also helps functionals when using runboat).
# DOCS https://pre-commit.com/#temporarily-disabling-hooks
SKIP: oca-gen-addon-readme
- name: Check that all files generated by pre-commit are in git
run: |
newfiles="$(git ls-files --others --exclude-from=.gitignore)"

View File

@@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
name: Detect unreleased dependencies
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: |
for reqfile in requirements.txt test-requirements.txt ; do
if [ -f ${reqfile} ] ; then
@@ -36,10 +36,10 @@ jobs:
matrix:
include:
- container: ghcr.io/oca/oca-ci/py3.6-odoo14.0:latest
makepot: "true"
name: test with Odoo
- container: ghcr.io/oca/oca-ci/py3.6-ocb14.0:latest
name: test with OCB
makepot: "true"
services:
postgres:
image: postgres:9.6
@@ -50,7 +50,7 @@ jobs:
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Install addons and dependencies

View File

@@ -12,6 +12,8 @@ exclude: |
/static/(src/)?lib/|
# Repos using Sphinx to generate docs don't need prettying
^docs/_templates/.*\.html$|
# Don't bother non-technical authors with formatting issues in docs
readme/.*\.(rst|md)$|
# You don't usually want a bot to modify your legal texts
(LICENSE.*|COPYING.*)
default_language_version:
@@ -33,12 +35,24 @@ repos:
language: fail
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
- repo: https://github.com/oca/maintainer-tools
rev: ab1d7f6
rev: 969238e47c07d0c40573acff81d170f63245d738
hooks:
# update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons
- id: oca-fix-manifest-website
args: ["https://github.com/OCA/stock-logistics-warehouse"]
- id: oca-gen-addon-readme
args:
- --addons-dir=.
- --branch=14.0
- --org-name=OCA
- --repo-name=stock-logistics-warehouse
- --if-source-changed
- repo: https://github.com/OCA/odoo-pre-commit-hooks
rev: v0.0.25
hooks:
- id: oca-checks-odoo-module
- id: oca-checks-po
- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:

View File

@@ -4,6 +4,7 @@ import logging
from odoo import SUPERUSER_ID, api
# pylint: disable=W7950
from odoo.addons.account_move_line_stock_info.hooks import post_init_hook
_logger = logging.getLogger(__name__)

View File

@@ -107,7 +107,6 @@ msgstr ""
#: model:ir.actions.act_window,name:product_route_profile.action_route_profile_form
#: model:ir.ui.menu,name:product_route_profile.menu_route_profile_config
#: model_terms:ir.ui.view,arch_db:product_route_profile.route_profile_form
#: model_terms:ir.ui.view,arch_db:product_route_profile.route_profile_tree
msgid "Routes Profiles"
msgstr ""

View File

@@ -7,7 +7,7 @@
<field name="name">route.profile.tree</field>
<field name="model">route.profile</field>
<field name="arch" type="xml">
<tree string="Routes Profiles">
<tree>
<field name="name" />
<field name="route_ids" widget="many2many_tags" />
</tree>

View File

@@ -89,11 +89,6 @@ msgstr ""
msgid "Reason Code"
msgstr ""
#. module: scrap_reason_code
#: model_terms:ir.ui.view,arch_db:scrap_reason_code.view_scrap_reason_code_list
msgid "Reason Codes"
msgstr ""
#. module: scrap_reason_code
#: model:ir.model.fields,field_description:scrap_reason_code.field_stock_move__reason_code_id
msgid "Reason code"

View File

@@ -31,7 +31,7 @@
<field name="name">scrap.reason.code.list</field>
<field name="model">scrap.reason.code</field>
<field name="arch" type="xml">
<tree string="Reason Codes">
<tree>
<field name="name" />
<field name="description" />
<field name="location_id" />

View File

@@ -418,7 +418,6 @@ msgstr ""
#. module: stock_cycle_count
#: model:ir.model.fields,help:stock_cycle_count.field_stock_cycle_count__message_has_error
#: model:ir.model.fields,help:stock_cycle_count.field_stock_cycle_count__message_has_sms_error
msgid "If checked, some messages have a delivery error."
msgstr ""
@@ -645,11 +644,6 @@ msgstr ""
msgid "Rule Description"
msgstr ""
#. module: stock_cycle_count
#: model:ir.model.fields,field_description:stock_cycle_count.field_stock_cycle_count__message_has_sms_error
msgid "SMS Delivery error"
msgstr ""
#. module: stock_cycle_count
#: code:addons/stock_cycle_count/models/stock_cycle_count_rule.py:0
#, python-format
@@ -705,8 +699,6 @@ msgstr ""
#. module: stock_cycle_count
#: model:ir.actions.act_window,name:stock_cycle_count.action_stock_cycle_count
#: model:ir.model.fields,field_description:stock_cycle_count.field_stock_inventory__cycle_count_id
#: model_terms:ir.ui.view,arch_db:stock_cycle_count.stock_cycle_count_rule_tree_view
#: model_terms:ir.ui.view,arch_db:stock_cycle_count.stock_cycle_count_tree_view
msgid "Stock Cycle Count"
msgstr ""

View File

@@ -7,7 +7,7 @@
<field name="name">stock.cycle.count.rule.tree</field>
<field name="model">stock.cycle.count.rule</field>
<field name="arch" type="xml">
<tree string="Stock Cycle Count">
<tree>
<field name="name" />
<field name="warehouse_ids" />
<field name="location_ids" />

View File

@@ -8,7 +8,6 @@
<field name="model">stock.cycle.count</field>
<field name="arch" type="xml">
<tree
string="Stock Cycle Count"
decoration-muted="state == 'cancelled'"
decoration-info="state == 'draft'"
>

View File

@@ -81,11 +81,6 @@ msgstr ""
msgid "Stock Amount"
msgstr ""
#. module: stock_location_empty
#: model_terms:ir.ui.view,arch_db:stock_location_empty.view_location_tree3
msgid "Stock Location"
msgstr ""
#. module: stock_location_empty
#: model_terms:ir.ui.view,arch_db:stock_location_empty.view_location_search_empty_2
msgid "Stock Locations"

View File

@@ -6,11 +6,7 @@
<field name="model">stock.location</field>
<field name="priority" eval="2" />
<field name="arch" type="xml">
<tree
string="Stock Location"
decoration-info="usage=='view'"
decoration-danger="usage=='internal'"
>
<tree decoration-info="usage=='view'" decoration-danger="usage=='internal'">
<field name="display_name" />
<field name="usage" />
<field name="company_id" groups="base.group_multi_company" />

View File

@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data noupdate="1">
<odoo noupdate="1">
<record forcecreate="True" id="ir_cron_location_replenishment" model="ir.cron">
<field name="name">Procurement: run location replenishment</field>
<field name="model_id" ref="model_stock_location_orderpoint" />
@@ -15,5 +14,4 @@
<field name="numbercall">-1</field>
<field eval="False" name="doall" />
</record>
</data>
</odoo>

View File

@@ -208,11 +208,6 @@ msgstr ""
msgid "Sequence"
msgstr ""
#. module: stock_location_orderpoint
#: model_terms:ir.ui.view,arch_db:stock_location_orderpoint.view_stock_location_orderpoint_tree_editable
msgid "Stock Location Oderpoints"
msgstr ""
#. module: stock_location_orderpoint
#: model:ir.actions.act_window,name:stock_location_orderpoint.action_stock_location_orderpoint
#: model:ir.ui.menu,name:stock_location_orderpoint.menu_stock_location_orderpoint

View File

@@ -4,7 +4,7 @@
<field name="name">stock.location.orderpoint.tree.editable</field>
<field name="model">stock.location.orderpoint</field>
<field name="arch" type="xml">
<tree string="Stock Location Oderpoints">
<tree>
<field name="sequence" widget="handle" />
<field name="name" />
<field name="location_id" options="{'no_create': True}" />

View File

@@ -172,7 +172,6 @@ msgstr ""
#. module: stock_location_tray
#: model_terms:ir.ui.view,arch_db:stock_location_tray.view_stock_location_tray_type_form
#: model_terms:ir.ui.view,arch_db:stock_location_tray.view_stock_location_tray_type_search
#: model_terms:ir.ui.view,arch_db:stock_location_tray.view_stock_location_tray_type_tree
msgid "Location Tray Type"
msgstr ""

View File

@@ -75,7 +75,7 @@
<field name="name">stock.location.tray.type</field>
<field name="model">stock.location.tray.type</field>
<field name="arch" type="xml">
<tree string="Location Tray Type">
<tree>
<field name="name" />
<field name="code" />
<field name="rows" />

View File

@@ -100,11 +100,6 @@ msgstr ""
msgid "Immediate Transfer"
msgstr ""
#. module: stock_move_location
#: model_terms:ir.ui.view,arch_db:stock_move_location.view_wiz_stock_move_location_form_stock_move_location
msgid "Inventory Details"
msgstr ""
#. module: stock_move_location
#: model:ir.model.fields,field_description:stock_move_location.field_stock_move____last_update
#: model:ir.model.fields,field_description:stock_move_location.field_stock_picking____last_update

View File

@@ -44,7 +44,6 @@
mode="tree,kanban"
>
<tree
string="Inventory Details"
editable="bottom"
decoration-info="move_quantity != max_quantity"
decoration-danger="(move_quantity &lt; 0) or (move_quantity > max_quantity)"

View File

@@ -14,7 +14,7 @@
</p>
<group name="items" string="Items">
<field name="item_ids" nolabel="1">
<tree string="Items" nocreate="1" editable="top">
<tree nocreate="1" editable="top">
<field name="orderpoint_id" invisible="True" />
<field
name="warehouse_id"
@@ -58,7 +58,7 @@
</p>
<group name="items" string="Items">
<field name="item_ids" nolabel="1">
<tree string="Items" nocreate="1" editable="top">
<tree nocreate="1" editable="top">
<field name="orderpoint_id" invisible="True" />
<field
name="warehouse_id"

View File

@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<record id="stock_picking_show_linked_form_inherit" model="ir.ui.view">
<field name="name">stock_picking_show_linked.form</field>
<field name="model">stock.picking</field>
@@ -10,33 +9,32 @@
<field name="dest_picking_count" invisible="1" />
<field name="origin_picking_count" invisible="1" />
<button
class="oe_stat_button"
type="object"
name="action_stock_picking_destination"
icon="fa-truck"
attrs="{'invisible': [('dest_picking_count', '==', 0)]}"
>
class="oe_stat_button"
type="object"
name="action_stock_picking_destination"
icon="fa-truck"
attrs="{'invisible': [('dest_picking_count', '==', 0)]}"
>
<field
string="Dest. Transfers"
name="dest_picking_count"
widget="statinfo"
/>
string="Dest. Transfers"
name="dest_picking_count"
widget="statinfo"
/>
</button>
<button
class="oe_stat_button"
type="object"
name="action_stock_picking_origin"
icon="fa-truck"
attrs="{'invisible': [('origin_picking_count', '==', 0)]}"
>
class="oe_stat_button"
type="object"
name="action_stock_picking_origin"
icon="fa-truck"
attrs="{'invisible': [('origin_picking_count', '==', 0)]}"
>
<field
string="Origin Transfers"
name="origin_picking_count"
widget="statinfo"
/>
string="Origin Transfers"
name="origin_picking_count"
widget="statinfo"
/>
</button>
</div>
</field>
</record>
</data>
</odoo>

View File

@@ -374,11 +374,8 @@ msgstr ""
#. module: stock_request
#: model:ir.model.fields,help:stock_request.field_stock_request__message_has_error
#: model:ir.model.fields,help:stock_request.field_stock_request__message_has_sms_error
#: model:ir.model.fields,help:stock_request.field_stock_request_abstract__message_has_error
#: model:ir.model.fields,help:stock_request.field_stock_request_abstract__message_has_sms_error
#: model:ir.model.fields,help:stock_request.field_stock_request_order__message_has_error
#: model:ir.model.fields,help:stock_request.field_stock_request_order__message_has_sms_error
msgid "If checked, some messages have a delivery error."
msgstr ""
@@ -805,13 +802,6 @@ msgstr ""
msgid "Rules used"
msgstr ""
#. module: stock_request
#: model:ir.model.fields,field_description:stock_request.field_stock_request__message_has_sms_error
#: model:ir.model.fields,field_description:stock_request.field_stock_request_abstract__message_has_sms_error
#: model:ir.model.fields,field_description:stock_request.field_stock_request_order__message_has_sms_error
msgid "SMS Delivery error"
msgstr ""
#. module: stock_request
#: model_terms:ir.ui.view,arch_db:stock_request.stock_request_order_form
#: model_terms:ir.ui.view,arch_db:stock_request.view_stock_request_form
@@ -884,7 +874,6 @@ msgstr ""
#. module: stock_request
#: model_terms:ir.ui.view,arch_db:stock_request.view_move_form
#: model_terms:ir.ui.view,arch_db:stock_request.view_stock_request_allocation_form
#: model_terms:ir.ui.view,arch_db:stock_request.view_stock_request_allocation_tree
msgid "Stock Request Allocations"
msgstr ""
@@ -943,7 +932,6 @@ msgstr ""
#: model_terms:ir.ui.view,arch_db:stock_request.stock_request_search
#: model_terms:ir.ui.view,arch_db:stock_request.view_picking_form
#: model_terms:ir.ui.view,arch_db:stock_request.view_stock_request_form
#: model_terms:ir.ui.view,arch_db:stock_request.view_stock_request_tree
msgid "Stock Requests"
msgstr ""

View File

@@ -6,7 +6,7 @@
<field name="name">stock.request.allocation.tree</field>
<field name="model">stock.request.allocation</field>
<field name="arch" type="xml">
<tree string="Stock Request Allocations">
<tree>
<field name="stock_request_id" />
<field name="stock_move_id" />
<field name="product_id" />

View File

@@ -7,7 +7,6 @@
<field name="model">stock.request</field>
<field name="arch" type="xml">
<tree
string="Stock Requests"
decoration-muted="state == 'cancel'"
decoration-bf="message_needaction==True"
>

View File

@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data noupdate="1">
<odoo noupdate="1">
<record id="seq_stock_request_kanban" model="ir.sequence">
<field name="name">Stock Request Kanban</field>
<field name="code">stock.request.kanban</field>
@@ -15,5 +14,4 @@
<field name="padding">5</field>
<field name="company_id" eval="False" />
</record>
</data>
</odoo>

View File

@@ -290,9 +290,7 @@ msgstr ""
#. module: stock_request_kanban
#: model:ir.model.fields,help:stock_request_kanban.field_stock_inventory_kanban__message_has_error
#: model:ir.model.fields,help:stock_request_kanban.field_stock_inventory_kanban__message_has_sms_error
#: model:ir.model.fields,help:stock_request_kanban.field_stock_request_kanban__message_has_error
#: model:ir.model.fields,help:stock_request_kanban.field_stock_request_kanban__message_has_sms_error
msgid "If checked, some messages have a delivery error."
msgstr ""
@@ -590,12 +588,6 @@ msgstr ""
msgid "Routes"
msgstr ""
#. module: stock_request_kanban
#: model:ir.model.fields,field_description:stock_request_kanban.field_stock_inventory_kanban__message_has_sms_error
#: model:ir.model.fields,field_description:stock_request_kanban.field_stock_request_kanban__message_has_sms_error
msgid "SMS Delivery error"
msgstr ""
#. module: stock_request_kanban
#: model_terms:ir.ui.view,arch_db:stock_request_kanban.stock_request_order_form
#: model_terms:ir.ui.view,arch_db:stock_request_kanban.view_stock_inventory_kanban_form
@@ -662,7 +654,6 @@ msgstr ""
#. module: stock_request_kanban
#: model_terms:ir.ui.view,arch_db:stock_request_kanban.view_stock_inventory_kanban_form
#: model_terms:ir.ui.view,arch_db:stock_request_kanban.view_stock_inventory_kanban_tree
msgid "Stock Inventories"
msgstr ""
@@ -711,7 +702,6 @@ msgstr ""
#. module: stock_request_kanban
#: model_terms:ir.ui.view,arch_db:stock_request_kanban.view_stock_request_kanban_form
#: model_terms:ir.ui.view,arch_db:stock_request_kanban.view_stock_request_kanban_tree
msgid "Stock Requests"
msgstr ""

View File

@@ -4,7 +4,7 @@
<field name="name">stock.inventory.kanban.tree</field>
<field name="model">stock.inventory.kanban</field>
<field name="arch" type="xml">
<tree string="Stock Inventories">
<tree>
<field name="name" />
<field name="count_missing_kanbans" />
<field name="state" />

View File

@@ -7,7 +7,6 @@
<field name="model">stock.request.kanban</field>
<field name="arch" type="xml">
<tree
string="Stock Requests"
decoration-muted="active == 'false'"
decoration-bf="message_needaction==True"
>

View File

@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright 2019 ForgeFlow S.L.
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<data noupdate="1">
<odoo noupdate="1">
<record id="stock_request_default_tier_definition" model="tier.definition">
<field name="name">Manager review</field>
<field name="model_id" ref="model_stock_request" />
@@ -10,25 +9,24 @@
<field name="definition_domain" />
<field name="review_type">group</field>
<field
name="reviewer_group_id"
ref='stock_request.group_stock_request_manager'
/>
name="reviewer_group_id"
ref='stock_request.group_stock_request_manager'
/>
<field name="active">False</field>
</record>
<record
id="stock_request_order_default_tier_definition"
model="tier.definition"
>
id="stock_request_order_default_tier_definition"
model="tier.definition"
>
<field name="name">Manager review</field>
<field name="model_id" ref="model_stock_request_order" />
<field name="definition_type">domain</field>
<field name="definition_domain" />
<field name="review_type">group</field>
<field
name="reviewer_group_id"
ref='stock_request.group_stock_request_manager'
/>
name="reviewer_group_id"
ref='stock_request.group_stock_request_manager'
/>
<field name="active">False</field>
</record>
</data>
</odoo>

View File

@@ -804,7 +804,6 @@ msgstr ""
#: model_terms:ir.ui.view,arch_db:stock_reserve.product_template_form_view_reservation_button
#: model_terms:ir.ui.view,arch_db:stock_reserve.view_stock_reservation_form
#: model_terms:ir.ui.view,arch_db:stock_reserve.view_stock_reservation_search
#: model_terms:ir.ui.view,arch_db:stock_reserve.view_stock_reservation_tree
msgid "Stock Reservations"
msgstr ""

View File

@@ -81,7 +81,6 @@
<field name="model">stock.reservation</field>
<field name="arch" type="xml">
<tree
string="Stock Reservations"
decoration-primary="state == 'draft'"
decoration-muted="state == 'cancel'"
>

View File

@@ -201,7 +201,6 @@ msgstr ""
#. module: stock_reserve_rule
#: model_terms:ir.ui.view,arch_db:stock_reserve_rule.view_stock_reserve_rule_form
#: model_terms:ir.ui.view,arch_db:stock_reserve_rule.view_stock_reserve_rule_search
#: model_terms:ir.ui.view,arch_db:stock_reserve_rule.view_stock_reserve_rule_tree
msgid "Reservation Rule"
msgstr ""

View File

@@ -43,7 +43,7 @@
</group>
<group string="Removal Rules" name="rule" col="1">
<field name="rule_removal_ids" nolabel="1">
<tree string="Removal Rules">
<tree>
<field name="sequence" widget="handle" />
<field name="name" />
<field name="location_id" />
@@ -96,7 +96,7 @@
<field name="name">stock.reserve.rule</field>
<field name="model">stock.reserve.rule</field>
<field name="arch" type="xml">
<tree string="Reservation Rule">
<tree>
<field name="sequence" widget="handle" />
<field name="name" />
<field name="location_id" />

View File

@@ -603,7 +603,6 @@ msgstr ""
#: model_terms:ir.ui.view,arch_db:stock_vertical_lift.vertical_lift_shuttle_form_menu
#: model_terms:ir.ui.view,arch_db:stock_vertical_lift.vertical_lift_shuttle_manual_barcode_form
#: model_terms:ir.ui.view,arch_db:stock_vertical_lift.vertical_lift_shuttle_view_form
#: model_terms:ir.ui.view,arch_db:stock_vertical_lift.vertical_lift_shuttle_view_tree
msgid "Shuttle"
msgstr ""

View File

@@ -187,7 +187,7 @@
<field name="name">vertical.lift.shuttle.tree</field>
<field name="model">vertical.lift.shuttle</field>
<field name="arch" type="xml">
<tree string="Shuttle">
<tree>
<field name="name" />
</tree>
</field>

View File

@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.stock</field>
<field name="model">res.config.settings</field>
@@ -8,9 +7,9 @@
<field name="inherit_id" ref="stock.res_config_settings_view_form" />
<field name="arch" type="xml">
<xpath
expr="//field[@name='group_stock_adv_location']/ancestor::div[hasclass('o_setting_box')]"
position="after"
>
expr="//field[@name='group_stock_adv_location']/ancestor::div[hasclass('o_setting_box')]"
position="after"
>
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="vertical_lift_empty_tray_check" />
@@ -27,5 +26,4 @@
</xpath>
</field>
</record>
</data>
</odoo>