[FIX] sale_project: make sol field editable

Before this commit sol field wasn't editable when user
don't have any sales access and it was editable for
timesheet page and project form view.

This commit make SOL field in task form editable to
be consistant with project form and timesheet page
of tast form.

task-3764793

closes odoo/odoo#158547

X-original-commit: 1d25d6f92d4ecf658bbbc9d39983808fa0fc9c87
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
Signed-off-by: Kartik Chavda (kcv) <kcv@odoo.com>
This commit is contained in:
kcv-odoo
2024-03-25 08:33:08 +00:00
parent d03953f3b7
commit c0dd759df7
@@ -165,9 +165,8 @@
<field name="sale_line_id"
groups="!sales_team.group_sale_salesman"
string="Sales Order Item"
options='{"no_open": True}'
options='{"no_open": True, "no_create": True}'
context="{'create': False, 'edit': False, 'delete': False}"
readonly="1"
invisible="not allow_billable or not project_id or not sale_line_id or not partner_id"/>
<field name="sale_line_id"
groups="sales_team.group_sale_salesman"