PoS - Stock
pos_stock · odoo/odoo
Health
75/100
good
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by20/254 modules depend on it
-
Maturity5/25In 1 Odoo series since 20.0
Heuristic over the facts below, not an audit · How it's computed
Required by
4
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
1.44 MB
Module directory on disk
Code analysis
0 migration notes
19 models
8 views
0 HTTP endpoints
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 8
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
pos_stock.pos_order_receipt_footer |
pos_stock.pos_order_receipt_footer | ir.ui.view | qweb | Inherits point_of_sale.pos_order_receipt_footer |
pos_stock.pos_orderline_receipt_information |
pos_stock.pos_orderline_receipt_information | ir.ui.view | qweb | Inherits point_of_sale.pos_orderline_receipt_information |
product_template_view_form_normalized_pos |
product.template.view.form.normalized.inherit.pos.stock | product.template | form | Inherits point_of_sale.product_template_view_form_normalized_pos |
res_config_settings_view_form |
res.config.settings.view.form.inherit.pos.stock | res.config.settings | form | Inherits point_of_sale.res_config_settings_view_form |
stock_reference_view_form |
stock.reference.view.form.inherit.pos.stock | stock.reference | form | Inherits stock.stock_reference_form_view |
view_pos_config_search |
pos.config.view.search.inherit.pos.stock | pos.config | search | Inherits point_of_sale.view_pos_config_search |
view_pos_pos_form |
pos.order.view.form.inherit.pos.stock | pos.order | form | Inherits point_of_sale.view_pos_pos_form |
view_pos_session_form |
pos.session.view.form.inherit.pos.stock | pos.session | form | Inherits point_of_sale.view_pos_session_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 19
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (5)
-
picking_policySelectiondefault='direct'help='If you deliver all products at once, the delivery order will be scheduled based on the greatest product lead time. Otherwise, it will be based on the shortest.'required=Truestring='Shipping Policy' args: [('direct', 'As soon as possible, with back orders'), ('one', 'When all products are ready')] -
picking_type_idMany2one → stock.picking.typedefault=_default_picking_type_iddomain=<expr>ondelete='restrict'required=Truestring='Operation Type' args: 'stock.picking.type' -
route_idMany2one → stock.routestring='Specific route for products delivered later.' args: 'stock.route' -
ship_laterBooleanstring='Ship Later' -
warehouse_idMany2one → stock.warehousecompute='_compute_warehouse_id'ondelete='restrict'precompute=Truereadonly=Falsestore=True args: 'stock.warehouse'
-
create(self, vals_list)@api.model_create_multi
New fields (6)
-
failed_pickingsBooleancompute='_compute_picking_count' -
picking_countIntegercompute='_compute_picking_count' -
picking_idsOne2many → stock.pickingargs: 'stock.picking', 'pos_order_id' -
picking_type_idMany2one → stock.picking.typereadonly=Falserelated='session_id.config_id.picking_type_id'string='Operation Type' args: 'stock.picking.type' -
shipping_dateDateargs: 'Shipping Date' -
stock_reference_idsMany2many → stock.referencestring='Reference' args: 'stock.reference', 'stock_reference_pos_order_rel', 'pos_order_id', 'reference_id'
-
action_stock_picking(self) -
get_stock_reports_to_print(self) -
process_saved_payments(self, order, existing_order) -
read_pos_data(self, data, config)
New fields (1)
-
pack_lot_idsOne2many → pos.pack.operation.lotstring='Lot/serial Number' args: 'pos.pack.operation.lot', 'pos_order_line_id'
-
get_existing_lots(self, company_id, config_id, product_id)@api.modelReturn the lots that are still available in the given company. The lot is available if its quantity in the corresponding stock_quant and pos stock location is > 0. -
write(self, vals)
New fields (0)
No new fields.
Public methods (1)-
order_receipt_generate_data(self, basic_receipt=False)
New fields (4)
-
lot_nameCharargs: 'Lot Name' -
order_idMany2one → pos.orderreadonly=Falserelated='pos_order_line_id.order_id' args: 'pos.order' -
pos_order_line_idMany2one → pos.order.lineindex='btree_not_null' args: 'pos.order.line' -
product_idMany2one → product.productreadonly=Falserelated='pos_order_line_id.product_id' args: 'product.product'
No public methods.
New fields (4)
-
failed_pickingsBooleancompute='_compute_picking_count' -
picking_countIntegercompute='_compute_picking_count' -
picking_idsOne2many → stock.pickingargs: 'stock.picking', 'pos_session_id' -
update_stock_at_closingBooleanargs: 'Stock should be updated at closing'
-
action_stock_picking(self) -
close_session_from_ui(self, payment_method_closing={})
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (1)-
get_product_info_pos(self, price, quantity, pos_config_id, product_variant_id=False)
New fields (1)
-
point_of_sale_update_stock_quantitiesSelectiondefault='real'help="At the session closing: A picking is created for the entire session when it's closed\n In real time: Each order sent to the server create its own picking"string='Update quantities in stock' args: [('closing', 'At the session closing'), ('real', 'In real time')]
No public methods.
New fields (6)
-
pos_picking_policySelectionreadonly=Falserelated='pos_config_id.picking_policy' -
pos_picking_type_idMany2onereadonly=Falserelated='pos_config_id.picking_type_id' -
pos_route_idMany2onereadonly=Falserelated='pos_config_id.route_id' -
pos_ship_laterBooleanreadonly=Falserelated='pos_config_id.ship_later' -
pos_warehouse_idMany2onereadonly=Falserelated='pos_config_id.warehouse_id'string='Warehouse (PoS)' -
update_stock_quantitiesSelectionreadonly=Falserelated='company_id.point_of_sale_update_stock_quantities'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (2)
-
pos_order_idMany2one → pos.orderindex=True args: 'pos.order' -
pos_session_idMany2one → pos.sessionindex=True args: 'pos.session'
No public methods.
New fields (1)
-
has_stock_reports_to_printBooleancompute='_compute_has_stock_reports_to_print'
No public methods.
New fields (1)
-
pos_order_idsMany2many → pos.orderstring='PoS Orders' args: 'pos.order', 'stock_reference_pos_order_rel', 'reference_id', 'pos_order_id'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
pos_type_idMany2one → stock.picking.typecopy=Falsestring='Point of Sale Operation Type' args: 'stock.picking.type'
No public methods.