[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>
This commit is contained in:
Pierre Collinet (pic)
2020-08-12 14:19:10 +00:00
parent a17725e998
commit 5aa7839d0b
3 changed files with 3 additions and 1 deletions
@@ -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');
+1
View File
@@ -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>
+1 -1
View File
@@ -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"/>