diff options
| author | Xavier Morel <xmo@odoo.com> | 2017-12-01 17:07:02 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2017-12-04 13:11:56 +0100 |
| commit | 346d7702911505b4137f684bfbf29190a19e6529 (patch) | |
| tree | c8e7221398d5e193a339e5306a52527dc8a59221 /doc/reference/testing.rst | |
| parent | d59abc4c743ca6c77bd47ab6c2cc0ad9e16e16d6 (diff) | |
[FIX] sale_mrp: clear product routes before adding manufacturing ones
If purchase happens to be installed before MRP is, the "buy" route is
set by default on products *and* takes precedence over the MRP
one (because created first and same sequence).
This leads to purchase trying to buy products (which have no seller)
instead of MRP trying to manufacture them, which is what we're trying
to do & test.
Fix by clearing the route_ids field before adding the MRP routes.
Diffstat (limited to 'doc/reference/testing.rst')
| -rw-r--r-- | doc/reference/testing.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/reference/testing.rst b/doc/reference/testing.rst index b10d966ed86..a54440293cc 100644 --- a/doc/reference/testing.rst +++ b/doc/reference/testing.rst @@ -79,7 +79,7 @@ in each method:: :members: .. autoclass:: odoo.tests.common.M2MProxy - :members: add, remove + :members: add, remove, clear .. autoclass:: odoo.tests.common.O2MProxy :members: new, edit, remove |
