Issue 7887

Title
Missing search stock period by company
Priority
bug
Status
closed
Superseder
Stock period selected from any company (issue 8718)
Nosy list
ced, resteve, yangoon
Assigned to
Keywords

Created on 2018-11-26.12:26:01 by resteve, last changed 34 months ago by ced.

Messages

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2019-10-08.17:47:25
Solved by issue8718
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2018-12-31.00:31:16
To fix this issue, the stock module must be freed of record rules.
As it is a big changes, it will not be back-ported. So this means that multi-company setup can not close period.
Author: [hidden] (resteve)
Date: 2018-11-26.12:26:01
Scenario:

1- Company 1. Create stock period 2018-09-01
2- Company 2. Create stoc period 2018-12-01

In compute_quantities_query() method, the isn't "company" field in the domain search.
Also there isn't a default rule (ir.rule) by company [1]

Current get first period that find and maybe is not the current company [2]

[1] https://bitbucket.org/tryton/stock/src/9872e817351e36c2d2b6e438b835af3eb66c93b5/move.py#lines-1214

[2] https://bitbucket.org/tryton/stock/src/9872e817351e36c2d2b6e438b835af3eb66c93b5/move.py#lines-1219
History
Date User Action Args
2019-10-08 17:47:26cedsetstatus: chatting -> closed
messages: + msg52344
superseder: + Stock period selected from any company
2018-12-31 00:31:28cedlinkissue4080 superseder
2018-12-31 00:31:17cedsetnosy: + ced
messages: + msg45639
2018-11-26 13:47:44yangoonsetnosy: + yangoon
2018-11-26 12:29:59cedsetpriority: feature -> bug
type: behavior
component: + stock
2018-11-26 12:26:01restevecreate

Showing 10 items. Show all history (warning: this could be VERY long)