[16.0][ADD] mrp_subcontracting_serial_mass_produce#1759
[16.0][ADD] mrp_subcontracting_serial_mass_produce#1759nobuQuartile wants to merge 1 commit intoOCA:16.0from
Conversation
AungKoKoLin1997
left a comment
There was a problem hiding this comment.
I think the current module is missing a CONTEXT.md. It should explain how this module fills a gap in standard Odoo behavior when the subcontracting operation type is unarchived, even though that is not the default Odoo setup.
I also do not think the module should be limited to mass production with multiple serial number entries. While the module mainly targets clunky serial assignment, it should also support manual serial number entry in the MO form, likely through an extension of _onchange_lot_producing.
Also, shouldn’t we propose this to OCB instead of creating a new custom module? Although the subcontracting operation type is archived by default, the issue still appears when a user unarchives it and performs operations on a subcontracted MO.
Summary
products, the standard flow splits the MO and assigns serials but does not
call
subcontracting_record_component()on each split MO. As a result,subcontracting_has_been_recordedremains False and the finished serials arenever synced to the receipt move lines.
stock.assign.serial._assign_serial_numbers()toautomatically call
subcontracting_record_component()on each split MOafter Mass Produce, enabling Mass Produce to work end-to-end for
subcontracting orders.
@qrtl
QT6138