Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] base: impossible to change contact name format #903

Open
wants to merge 1 commit into
base: 10.0
Choose a base branch
from

Conversation

Tonow-c2c
Copy link

Idem as odoo#38100 for 10.0

  • Create a sales order for a company with a contact name.
  • Click the Preview button.
  • The company and contact names appear on the same line, only separated by a
    comma.

Before this commit:

it's not possible to easily override this behavior.

After this commit:

it's possible to override Partner._get_contact_name to change the format of
contact name.

Beware that this method is used in _get_name which is called from various
places. A check on the context may be necessary.

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

- Create a sales order for a company with a contact name.
- Click the Preview button.
- The company and contact names appear on the same line, only separated by a
comma.

Before this commit:

it's not possible to easily override this behavior.

After this commit:

it's possible to override `Partner._get_contact_name` to change the format of
contact name.

Beware that this method is used in `_get_name` which is called from various
places. A check on the context may be necessary.
@Tonow-c2c Tonow-c2c closed this Jan 27, 2020
@Tonow-c2c Tonow-c2c reopened this Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants