-
Notifications
You must be signed in to change notification settings - Fork 0
Odoo 18 migration - T3173 migrate auth external #51
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -139,9 +139,10 @@ const LetterDAO: BaseDAO<Letter> & LetterDAOApi = { | |||||
| // Add global state | ||||||
| // @ts-ignore | ||||||
| searchParams[0].push(['state', '=', 'Global Partner translation queue']); | ||||||
| const countParams = [searchParams[0]]; | ||||||
| const [letterIds, total] = await Promise.all([ | ||||||
| OdooAPI.execute_kw('correspondence', 'search', searchParams), | ||||||
| OdooAPI.execute_kw('correspondence', 'search', [...searchParams, true]) as Promise<number> | ||||||
| OdooAPI.execute_kw('correspondence', 'search_count', countParams) as Promise<number>, | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Suggested change
|
||||||
| ]); | ||||||
|
|
||||||
| const rawLetters = await OdooAPI.execute_kw<Letter[]>('correspondence', 'list_letters', [letterIds]); | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -71,9 +71,10 @@ const TranslatorDAO: BaseDAO<Translator> & TranslatorDAOApi = { | |||||
|
|
||||||
| async list(params) { | ||||||
| const searchParams = generateSearchQuery<Translator>(params, translatorFieldsMapping); | ||||||
| const countParams = [searchParams[0]]; | ||||||
| const [translatorIds, total] = await Promise.all([ | ||||||
| OdooAPI.execute_kw('translation.user', 'search', searchParams), | ||||||
| OdooAPI.execute_kw('translation.user', 'search', [...searchParams, true]) as Promise<number> | ||||||
| OdooAPI.execute_kw('translation.user', 'search_count', countParams) as Promise<number>, | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to the
Suggested change
|
||||||
| ]); | ||||||
|
|
||||||
| const rawTranslators = await OdooAPI.execute_kw<Translator[]>('translation.user', 'list_users', [translatorIds]); | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file still ends without a trailing newline (
\ No newline at end of file). Some tooling (e.g.dotenvparsers,git diff, linters) can misbehave or produce noisy diffs when a file is missing the final newline.