Skip to content

[17.0][MIG] logistics_planning_base: Migration to 17.0#1

Open
ChristianSantamaria wants to merge 23 commits into17.0from
17.0-add-logistics_planning_base
Open

[17.0][MIG] logistics_planning_base: Migration to 17.0#1
ChristianSantamaria wants to merge 23 commits into17.0from
17.0-add-logistics_planning_base

Conversation

@ChristianSantamaria
Copy link
Copy Markdown

@ChristianSantamaria ChristianSantamaria commented Mar 25, 2026

Edit: replaces solvosci/slv-stock#207

dalonsod and others added 22 commits March 25, 2026 10:37
Base addon for logistics management
…ptional all fields in tree view and modify some translations
With this improvement, new tools for massive schedules mark as finished
are added.

And, when logistics_planning_mgmt_weight is installed,
schedule inputs are not automatically marked as finished when a ticket
(move) is selected, so massive marking schedules as finished becomes
important.
…hods

Some onchange methods had write() calls within, that could lead to
unexpected results. In that cases we should use dot (".") notation or
update() calls.
With this improvement, it's possible to duplicate those logistics
plannings manually created. Some of the fields were reset anyway (like
state, linked stock move, invoicing, etc). Parametrized multi
duplication is allowed (selecting a certain number of schedules to be
duplicated, with a custom limit that prevent a user error selecting
"Duplicate" action when it wasn't intended to).
…dules

This is allowed for manual schedules at 'ready' state. An extra code
that prevents saving a schedule with move but without partner is added.
…nly users

If a user that have read-only access to logistics schedules loads any
view that computes partner_readonly technical field, an error is raised.

Addon logistics_planning_mgmt_weight adds a menu for this limited access
users, so an error is raised. This fixes it.
…o schedules

Co-Authored-By: David Alonso <david.alonso@solvos.es>
@dalonsod dalonsod force-pushed the 17.0-add-logistics_planning_base branch from 9882b37 to 16db182 Compare March 25, 2026 09:38
@dalonsod dalonsod changed the title [17.0][ADD] logistics_planning_base [17.0][MIG] logistics_planning_base: Migration to 17.0 Mar 25, 2026
@dalonsod
Copy link
Copy Markdown
Contributor

dalonsod commented Apr 17, 2026

Only starting addon test. During installation, two warnings are raised, could you check?

Warning no. 1 :

2026-04-17 17:18:22,288 91 WARNING odoo_17_oca01 py.warnings: /mnt/extra-addons/slv-logistics/logistics_planning_base/models/logistics_schedule.py:17: SyntaxWarning: invalid escape sequence '\w'

Warning no. 2:

2026-04-17 17:18:22,336 91 WARNING odoo_17_oca01 odoo.fields: Field logistics.schedule.state: unknown parameter 'tracking', if this is an actual parameter you may want to override the method _valid_field_parameter on the relevant model in order to allow it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants