Skip to content

Purchase terms do not load for vendors with MTO routes #2849

@hwejmelka-cloudunify

Description

@hwejmelka-cloudunify

Module

The name of the module that has a bug.
https://odoo-community.org/shop/purchase-default-terms-conditions-5612#attr=8773
V18

Describe the bug

A clear and concise description of what the bug is.

Set up default purchase conditions in a vendor > sell a product with a MTO route > in the PO the purchase conditions are blank, the vendor needs to be input again to load the text

To Reproduce

Affected versions:
only tested on v18

Steps to reproduce the behavior:

  1. Set up default purchase conditions in a vendor
  2. sell a product with a MTO route
  3. check out the PO, the terms field is empty
  4. manually input the vendor again
  5. the terms are now displayed in the field

Expected behavior
A clear and concise description of what you expected to happen.

The terms should be loaded from the vendor even when the PO is created from the OdooBot or another automatic route, without the need for manual input again

Additional context
Add any other context about the problem here. (e.g. OS, Python version, ...)

The original request/need is to be able to have different terms texts depending on the vendor's language.
I tried to add language specific texts with the translation functionality in the OCA field under purchase > configuration, however this does not seem to work either, probably because the standard field (notes, purchase.order) is set to "non translatable" which seems to override the translatable functionality of the OCA field.
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions