forked from itpp-labs/sync-addons
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #313 from itpp-labs/17.0
Syncing from upstream itpp-labs/sync-addons (17.0)
- Loading branch information
Showing
6 changed files
with
27 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Odoo 17 build with new deps | ||
Fresh Odoo 17 build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,31 @@ | ||
/** @odoo-module **/ | ||
/** Copyright 2024 Ivan Yelizariev <https://twitter.com/yelizariev> **/ | ||
/** Copyright 2024-2025 Ivan Yelizariev <https://twitter.com/yelizariev> **/ | ||
|
||
import { EmailField } from "@web/views/fields/email/email_field"; | ||
import { _t } from "@web/core/l10n/translation"; | ||
import { registry } from "@web/core/registry"; | ||
|
||
class TelegramField extends EmailField {} | ||
|
||
TelegramField.template = "partner_contact.TelegramField"; | ||
|
||
export const telegramField = { | ||
component: TelegramField, | ||
displayName: _t("Telegram"), | ||
supportedTypes: ["char"], | ||
extractProps: ({ attrs }) => ({ | ||
placeholder: attrs.placeholder, | ||
}), | ||
}; | ||
|
||
registry.category("fields").add("telegram", telegramField); | ||
|
||
class FormTelegramField extends TelegramField {} | ||
FormTelegramField.template = "partner_contact.FormTelegramField"; | ||
|
||
registry.category("fields").add("telegram", TelegramField); | ||
registry.category("fields").add("form.telegram", FormTelegramField); | ||
export const formTelegramField = { | ||
...telegramField, | ||
component: FormTelegramField, | ||
}; | ||
|
||
registry.category("fields").add("form.telegram", formTelegramField); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
markdown | ||
pyyaml |