diff --git a/purchase_partner_incoterm/README.rst b/purchase_partner_incoterm/README.rst index 8de28eb2a56..42e5743dfb3 100644 --- a/purchase_partner_incoterm/README.rst +++ b/purchase_partner_incoterm/README.rst @@ -2,7 +2,7 @@ Default purchase incoterm per partner ===================================== -.. +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! @@ -112,7 +112,7 @@ promote its widespread use. Current `maintainers `__: -|maintainer-TDu| |maintainer-bealdav| +|maintainer-TDu| |maintainer-bealdav| This module is part of the `OCA/purchase-workflow `_ project on GitHub. diff --git a/purchase_sale_link_by_origin/README.rst b/purchase_sale_link_by_origin/README.rst index 27dcd24f011..0ba094e904e 100644 --- a/purchase_sale_link_by_origin/README.rst +++ b/purchase_sale_link_by_origin/README.rst @@ -35,10 +35,10 @@ PO and SO are linked by their order lines. This module also link them by the PO's Origin field, to cover more cases. For example: -- If a user cancels a PO, by default the link would have been broken; - now it won't; -- Or if a user manually defines or updates the Origin field of a PO, it - will be taken into account. +- If a user cancels a PO, by default the link would have been broken; + now it won't; +- Or if a user manually defines or updates the Origin field of a PO, it + will be taken into account. **Table of contents** @@ -66,14 +66,14 @@ Authors Contributors ------------ -- Phuc (Kieu Hoang) +- Phuc (Kieu Hoang) Other credits ------------- The development of this module has been financially supported by: -- Camptocamp +- Camptocamp Maintainers ----------- diff --git a/purchase_sale_link_by_origin/models/sale_order.py b/purchase_sale_link_by_origin/models/sale_order.py index 2fb18d86336..35f13baa765 100644 --- a/purchase_sale_link_by_origin/models/sale_order.py +++ b/purchase_sale_link_by_origin/models/sale_order.py @@ -15,6 +15,6 @@ def _get_purchase_orders(self): po_related = self.env["purchase.order"] for order in self: po_related |= self.env["purchase.order"].search( - [("origin", "ilike", order.name)] + [("origin", "=", order.name)] ) return super()._get_purchase_orders() | po_related