mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
*: Fix pylint
This commit is contained in:
@@ -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__)
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -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'"
|
||||
>
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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}" />
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -44,7 +44,6 @@
|
||||
mode="tree,kanban"
|
||||
>
|
||||
<tree
|
||||
string="Inventory Details"
|
||||
editable="bottom"
|
||||
decoration-info="move_quantity != max_quantity"
|
||||
decoration-danger="(move_quantity < 0) or (move_quantity > max_quantity)"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -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"
|
||||
>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -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"
|
||||
>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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'"
|
||||
>
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user