[IMP] sale_{project,timesheet}: move project SOL to sale_project
This commit moves the "Sales Order Line" field in the project form view from `sale_timesheet` to `sale_project`, as the field itself is introduced in `sale_project` Task-3278895
This commit is contained in:
committed by
Xavier Bol (xbo)
parent
4fd1532936
commit
a745194e45
@@ -125,6 +125,30 @@
|
||||
</div>
|
||||
</group>
|
||||
</xpath>
|
||||
<xpath expr="//page[@name='settings']//field[@name='analytic_account_id']" position="before">
|
||||
<field name="sale_line_id"
|
||||
groups="!sales_team.group_sale_salesman"
|
||||
options="{'no_create': True, 'no_edit': True, 'delete': False, 'no_open': True}"
|
||||
attrs="{
|
||||
'invisible': [
|
||||
'|',
|
||||
('allow_billable', '=', False),
|
||||
('partner_id', '=', False),
|
||||
],
|
||||
}"
|
||||
/>
|
||||
<field name="sale_line_id"
|
||||
groups="sales_team.group_sale_salesman"
|
||||
options="{'no_create': True, 'no_edit': True, 'delete': False}"
|
||||
attrs="{
|
||||
'invisible': [
|
||||
'|',
|
||||
('allow_billable', '=', False),
|
||||
('partner_id', '=', False),
|
||||
],
|
||||
}"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
@@ -12,10 +12,6 @@
|
||||
<xpath expr="//button[@name='action_view_sos'][2]" position="attributes">
|
||||
<attribute name="context">{'create_for_project_id': active_id, 'default_project_id': active_id, 'default_partner_id': partner_id, 'default_analytic_account_id': analytic_account_id}</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//page[@name='settings']//field[@name='analytic_account_id']" position="before">
|
||||
<field name="sale_line_id" groups="!sales_team.group_sale_salesman" options="{'no_create': True, 'no_edit': True, 'delete': False, 'no_open': True}" attrs="{'invisible': ['|', ('allow_billable', '=', False), ('partner_id', '=', False)]}"/>
|
||||
<field name="sale_line_id" groups="sales_team.group_sale_salesman" options="{'no_create': True, 'no_edit': True, 'delete': False}" attrs="{'invisible': ['|', ('allow_billable', '=', False), ('partner_id', '=', False)]}"/>
|
||||
</xpath>
|
||||
<xpath expr="//page[@name='settings']" position="after">
|
||||
<page name="billing_employee_rate" string="Invoicing" attrs="{'invisible': ['|', ('allow_billable', '=', False), ('partner_id', '=', False)]}">
|
||||
<field name="sale_line_employee_ids" context="{'default_sale_line_id': sale_line_id}">
|
||||
|
||||
Reference in New Issue
Block a user