Friday, July 26, 2024
2 changes · 17.0
Resolved issues and error corrections
The point of sale IoTBox startup shortcut now stops the running Odoo service before launching it manually, instead of restarting it. This prevents startup failures caused by the service already using the required address, improving reliability for support and maintenance tasks.
Original PR description
`odoo` alias on IoTBox is meant to start Odoo with cli. It used to restart the service before starting by cli, causing a `address already in use` error. Replaced `restart` by `stop` to avoid restarting the service.
The Upload button is no longer shown in the general Journal Entries view because uploads from there cannot be linked to a specific journal and always fail. Users can still upload documents when working within a specific journal, keeping the option available where it works correctly.
Original PR description
To replicate the issue: 1. Go to Accounting app 2. Click on the Accounting menu => Journal Entries 3. Click the button Upload 4. After selecting a file, an error is raise, saying that "The journal in…
To replicate the issue: 1. Go to Accounting app 2. Click on the Accounting menu => Journal Entries 3. Click the button Upload 4. After selecting a file, an error is raise, saying that "The journal in which to upload the invoice is not specified." Cause: In the view for Journal Entries, there isn't a particular journal associated with it, so there is no definition the journal in which the document should be uploaded. Before 17.0, the document was uploaded to a default journal. Without a default journal, the error is raised. This renders the button useless in this view, as it will always raise an error after the user has selected a file to upload. Fix: The button should not be shown in the Journal Entries view (through Accounting => Journal Entries). But if the user is in a specific journal (for example, navigating from Accounting Dashboard => Miscellaneous Operations), the button should be shown. To do so, the account move list and kanban controllers in bills_upload check if the default move type is 'entry', and if so, whether there is an active id in the context. This allows differentiating between the specific journals or the general Journal Entries view. opw-4029227 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr