diff options
| author | Pierre Collinet (pic) <pic@odoo.com> | 2020-06-29 10:35:58 +0000 |
|---|---|---|
| committer | Pierre Collinet (pic) <pic@odoo.com> | 2020-08-12 14:19:10 +0000 |
| commit | 5aa7839d0b03d00ee20aea280053ebe2dda5593e (patch) | |
| tree | 1bfe501d36d589824968b55e05a8efb02f4c9e87 | |
| parent | a17725e99899ff1e06996f7c9ab93704c840131e (diff) | |
[FIX] project: only internal users in "Assigned To" field of task form
Values filled in "Assigned To" m2o were differing:
- if I "CREATE" task with "group by" then m2o is filled with
internal-users + portal-users
- if I "CREATE: task without group by then it filled with internal
users only.
In Project also same case.
To have a more coherent behaviour, we decided to put only internal
users in both cases.
Task ID #2229592
Community PR #54776
closes odoo/odoo#55820
X-original-commit: 8269c1958843002246c589cdd593417dec44f024
Related: odoo/enterprise#12376
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
| -rw-r--r-- | addons/portal/static/src/js/portal_signature.js | 1 | ||||
| -rw-r--r-- | addons/portal/views/portal_templates.xml | 1 | ||||
| -rw-r--r-- | addons/project/views/project_views.xml | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/addons/portal/static/src/js/portal_signature.js b/addons/portal/static/src/js/portal_signature.js index 5ee9652f1da..eac46519172 100644 --- a/addons/portal/static/src/js/portal_signature.js +++ b/addons/portal/static/src/js/portal_signature.js @@ -162,6 +162,7 @@ publicWidget.registry.SignatureForm = publicWidget.Widget.extend({ mode: this.$el.data('mode'), displaySignatureRatio: this.$el.data('signature-ratio'), signatureType: this.$el.data('signature-type'), + fontColor: this.$el.data('font-color') || 'black', }; var sendLabel = this.$el.data('send-label'); diff --git a/addons/portal/views/portal_templates.xml b/addons/portal/views/portal_templates.xml index 7387bfa8a27..195a7c5a7cb 100644 --- a/addons/portal/views/portal_templates.xml +++ b/addons/portal/views/portal_templates.xml @@ -483,6 +483,7 @@ t-att-data-send-label="send_label" t-att-data-signature-ratio="signature_ratio" t-att-data-signature-type="signature_type" + t-att-data-font-color="font_color" /> </template> diff --git a/addons/project/views/project_views.xml b/addons/project/views/project_views.xml index 6932b3763fe..115164f23c9 100644 --- a/addons/project/views/project_views.xml +++ b/addons/project/views/project_views.xml @@ -804,7 +804,7 @@ <form> <group> <field name="name" string = "Task Title"/> - <field name="user_id" options="{'no_open': True,'no_create': True}"/> + <field name="user_id" options="{'no_open': True,'no_create': True}" domain="[('share', '=', False)]"/> <field name="project_id" required="1" invisible="context.get('all_task', 1)"/> <field name="company_id" invisible="1"/> <field name="parent_id" invisible="1"/> |
