Repository
OCA/product-attribute · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.09 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/product-attribute
Last tracking update
2026-08-07 08:42:54
Authors
Odoo Community Association (OCA), ForgeFlow S.L.
Maintainers
Odoo Community Association (OCA), ForgeFlow S.L.
Committers
Weblate, OCA-git-bot, oca-ci, Kimkhoi3010
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
Adds ability to define a lot sequence from the product which will be
proposed upon creating new lots.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
res_config_settings_view_form res.config.settings.view.form.inherit.stock res.config.settings form Inherits stock.res_config_settings_view_form
view_template_property_form product.template.stock.property.form.inherit product.template form Inherits stock.view_template_property_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (5)
  • display_lot_sequence_fields Boolean
    compute='_compute_display_lot_sequence_fields'
  • lot_sequence_id Many2one → ir.sequence
    copy=False help='This field contains the information related to the numbering of lots.' string='Entry Sequence' args: 'ir.sequence'
  • lot_sequence_number_next Integer
    compute='_compute_lot_seq_number_next' help='The next sequence number will be used for the next lot.' inverse='_inverse_lot_seq_number_next' string='Next Number'
  • lot_sequence_padding Integer
    default=<expr> help="The lots' sequence will be created using this number of digits." string='Sequence Number of Digits'
  • lot_sequence_prefix Char
    help="The lot's sequence will be created using this prefix." string='Sequence Prefix'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)

New fields (1)
  • lot_sequence_padding Integer
    default=7 args: 'Sequence Number of Digits'
Public methods (0)

No public methods.

New fields (1)
  • lot_sequence_padding Integer
    readonly=False related='company_id.lot_sequence_padding'
Public methods (0)

No public methods.

New fields (1)
  • name Char
    default=<expr>
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • onchange_product_id(self)
    @api.onchange('product_id')

New fields (0)

No new fields.

Public methods (1)
  • action_show_details(self)
    Avoid calling and incrementing the sequence if not needed or already done

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…