• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OCA / stock-logistics-workflow / 2315
89%

Build:
DEFAULT BRANCH: 9.0
Ran 01 Oct 2018 02:30PM UTC
Jobs 2
Files 52
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2315

push

travis-ci

pedrobaeza
[9.0][REF]stock_auto_move: fix action_assign() (#373)

* The `_apply` method should not be overridden. In case of three step
operation with the last step set to auto move. The override of the
`_apply` method was causing the second move to be automatic as well.

**Use case**: doing a reception operation in two steps where the moves on
the second step are set to be automatic (using the push rule in this
case), and the reception is done partially.
**Expected Result**: When doing a first reception step partially a back
order is created, and we expect the second step to have a back order for
the remaining qty as well.
**Current behavior**: The correct move is processed automatically but no
backorder is created. The reason for that behavior is we processing the
move directly (i.e calling `action_done` of the `stock.move`) without
going through the normal process (i.e processing the second step
picking).
**The solution to the problem**: The processing the of the automatic
stock move should follow the same behavior as done from the user interface.
I've added a new function in `stock.picking` model called
`_transfer_pickings_with_auto_move` to simulate the same behavior this
function is called inside the `action_assign` of the stock move instead
of calling the `action_done` of the move.

1168 of 1345 relevant lines covered (86.84%)

1.74 hits per line

Jobs
ID Job ID Ran Files Coverage
3 2315.3 (TESTS="1" ODOO_REPO="odoo/odoo") 01 Oct 2018 02:30PM UTC 0
86.84
Travis Job 2315.3
4 2315.4 (TESTS="1" ODOO_REPO="OCA/OCB") 01 Oct 2018 02:31PM UTC 0
86.84
Travis Job 2315.4
Source Files on build 2315
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2315
  • a851aad5 on github
  • Prev Build on 9.0 (#2218)
  • Next Build on 9.0 (#2318)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc