Monday, March 21, 2022
2 changes · master
Resolved issues and error corrections
This fixes an issue where changing the quantity being produced could incorrectly reset the completed quantity to zero. It helps ensure manufacturing orders keep accurate production quantities when users save quantity changes.
Original PR description
To reproduce:
1. create a BOM with analytic account
2. create a MO to produce 10 of the above product
3. change producing qty to 5, SAVE the form.
4. change producing qty to 10, SAVE the form.
It happens because the server receive at the same time a new
`stock.move.line` creation and a quantity_done to write on the
`stock.move`.
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prThis fixes an internal inconsistency in how live chat or call session records are identified. It helps prevent unnecessary change detection and keeps messaging session data more reliable without changing the user experience.
Original PR description
Before this commit, mismatching types between String and Number would cause inserts to register a change. `rtc.js` used `rtcSession.peerToken`(String) and `rtcSession.id`(number) interchangeably, this commit fixes this issue by favoring the usage of `rtcSession.id`.