Skip to content
Health
87/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by25/25
    11 modules depend on it
  • Maturity12/25
    In 2 Odoo series since 15.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
11
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
2.08 MB
Module directory on disk
Code analysis 0 migration notes 7 models 12 views 0 HTTP endpoints

Description

A shopfloor assistant for weighing on stock operations.

Dependencies

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 12

XML IDNameModelTypeStatus
report_delivery_document report_delivery_document ir.ui.view qweb Inherits stock.report_delivery_document
report_weight_record_label report_weight_record_label ir.ui.view qweb New
stock_move_line_weight_kanban_view stock.move.line kanban New
stock_move_weight_form_view stock.move form New
stock_picking_type_kanban stock.picking.type kanban Inherits stock.stock_picking_type_kanban
stock_report_delivery_has_serial_move_line stock_report_delivery_has_serial_move_line ir.ui.view qweb Inherits stock.stock_report_delivery_has_serial_move_line
view_move_line_tree_detailed stock.move.line tree Inherits stock.view_move_line_tree_detailed
view_move_search stock.move search Inherits stock.view_move_search
view_move_weight_kanban_view stock.move kanban New
view_picking_form stock.picking form Inherits stock.view_picking_form
view_picking_type_form stock.picking.type form Inherits stock.view_picking_type_form
weighing_wizard_form_view weighing.wizard form New

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 7

New fields (0)

No new fields.

Public methods (1)
  • run_action(self)

New fields (11)
  • is_weighing_operation_locked Boolean
    compute='_compute_is_weighing_operation_locked'
  • lot_names Char
    compute='_compute_lot_names'
  • move_lines_weighed Boolean
    compute='_compute_recorded_weight'
  • origin_names Char
    compute='_compute_origin_names'
  • recorded_weight Float
    compute='_compute_recorded_weight' digits='Product Unit of Measure'
  • self_move_ids Many2many → stock.move
    comodel_name='stock.move' compute='_compute_self_move_ids'
  • show_weighing_print_button Boolean
    compute='_compute_show_weighing_print_button'
  • weighing_label_report_id Many2one
    related='picking_type_id.weighing_label_report_id'
  • weighing_state Selection
    compute='_compute_weighing_state' selection=[('weighed', 'Weighed'), ('weighing', 'Weighing'), ('to_weigh', 'To weigh')] store=True
  • weighing_state_color Integer
    compute='_compute_weighing_state_color'
  • weighing_user_id Many2one → res.users
    comodel_name='res.users' help="This user is weighing the record, so it's locked by him"
Public methods (10)
  • action_add_move_line(self)
    Open the weight wizard to add a new operation weight
  • action_force_weighed(self)
  • action_lock_weighing_operation(self)
    Avoid other that other user to modify the weight operation
  • action_print_weight_record_label(self)
    Get operations labels
  • action_reset_weights(self)
    Restore stock move lines weights
  • action_unlock_weigh_operation(self)
    Unlock the weigh operation
  • action_weighing(self)
    Open the wizard to record weights
  • action_weight_detailed_operations(self)
    Weight detailed operations for this picking
  • search_fetch(self, domain, field_names, offset=0, limit=None, order=None)
  • set_product_uom_qty_to_qty_done_from_weighing(self)

New fields (4)
  • has_recorded_weight Boolean
    help='The weight was set from the wizard'
  • recorded_weight Float
    digits='Product Unit of Measure'
  • weighing_date Datetime
  • weighing_user_id Many2one → res.users
    comodel_name='res.users'
Public methods (3)
  • action_print_weight_record_label(self)
    Get detailed operations weighing labels
  • action_reset_weights(self)
    Restore stock move lines weights
  • action_weighing(self)
    Open the wizard to record weights

New fields (2)
  • has_weighing_operations Boolean
    compute='_compute_has_weighing_operations'
  • weighing_operations Boolean
    related='picking_type_id.weighing_operations'
Public methods (1)
  • action_weighing_operations(self)
    Weighing operations for this picking

New fields (5)
  • print_weighing_label Boolean
    help='Print the weight operation label automatically'
  • to_do_weights Integer
    compute='_compute_to_do_weights'
  • weighing_label_report_id Many2one → ir.actions.report
    comodel_name='ir.actions.report' domain=[('model', '=', 'stock.move.line')] help='Choose a custom label template for this operation type'
  • weighing_operations Boolean
    help='Weighed products are done from weighing operations'
  • weight_move_ids Many2many → stock.move
    comodel_name='stock.move' compute='_compute_weight_move_ids'
Public methods (1)
  • action_weighing_operations(self)
    Weighing operations for this picking

New fields (1)
  • has_weight Boolean
    compute='_compute_has_weight' search='_search_has_weight'
Public methods (0)

No public methods.

New fields (20)
  • available_lot_ids Many2many → stock.lot
    comodel_name='stock.lot' compute='_compute_available_lot_ids'
  • available_result_package_ids Many2many → stock.quant.package
    comodel_name='stock.quant.package' compute='_compute_available_result_package_ids'
  • has_weight Boolean
    compute='_compute_has_weight' readonly=False
  • label_report_id Many2one → ir.actions.report
    comodel_name='ir.actions.report'
  • location_dest_id Many2one → stock.location
    comodel_name='stock.location' related='move_id.location_dest_id'
  • location_id Many2one → stock.location
    comodel_name='stock.location' related='move_id.location_id'
  • lot_id Many2one → stock.lot
    comodel_name='stock.lot' compute='_compute_lot_id' domain="[('id', 'in', available_lot_ids)]" readonly=False store=True
  • move_id Many2one → stock.move
    comodel_name='stock.move'
  • move_line_ids Many2many → stock.move.line
    comodel_name='stock.move.line'
  • owner_id Many2one → res.partner
    comodel_name='res.partner' related='selected_move_line_id.owner_id'
  • package_id Many2one → stock.quant.package
    comodel_name='stock.quant.package' related='selected_move_line_id.package_id'
  • print_label Boolean
    help='Print label after the weight record'
  • product_id Many2one → product.product
    comodel_name='product.product' related='move_id.product_id' store=True
  • product_tracking Selection
    related='product_id.tracking'
  • quant_id Many2one → stock.quant
    args: 'stock.quant', 'Pick From'
  • result_package_id Many2one → stock.quant.package
    domain="[('id', 'in', available_result_package_ids)]" help='If set, the operations are packed into this package' args: 'stock.quant.package', 'Destination Package'
  • selected_move_line_id Many2one → stock.move.line
    comodel_name='stock.move.line'
  • show_quant Boolean
    related='move_id.show_quant'
  • weight Float
    digits='Product Unit of Measure'
  • wizard_state Selection
    default='weight' selection=[('weight', 'Weight'), ('new_move_line', 'Add Operation')]
Public methods (5)
  • action_close(self)
    Close but unlock the operation
  • add_operation_and_record(self)
    New detailed operation from the kanban card
  • record_weight(self)
    Register the operation weight
  • reload_action_wizard(self)
    Helper method to be called by buttons in weighing wizard
  • unlink(self)
    Ensure that the wizard cleanup releases the weighing operations

Loading…