Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
23
sale_order_invoicing_finished_task/views/product_view.xml
Executable file
23
sale_order_invoicing_finished_task/views/product_view.xml
Executable file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2017 Tecnativa - Sergio Teruel
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
<record
|
||||
id="product_template_form_view_invoice_policy_inherit_sale_project"
|
||||
model="ir.ui.view"
|
||||
>
|
||||
<field name="model">product.template</field>
|
||||
<field
|
||||
name="inherit_id"
|
||||
ref="sale_project.product_template_form_view_invoice_policy_inherit_sale_project"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="service_tracking" position="after">
|
||||
<field
|
||||
name="invoicing_finished_task"
|
||||
invisible="type != 'service' or service_tracking not in ['task_global_project', 'task_in_project']"
|
||||
/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
42
sale_order_invoicing_finished_task/views/project_view.xml
Executable file
42
sale_order_invoicing_finished_task/views/project_view.xml
Executable file
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2017 Tecnativa - Sergio Teruel
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
<record id="task_type_edit" model="ir.ui.view">
|
||||
<field name="model">project.task.type</field>
|
||||
<field name="inherit_id" ref="project.task_type_edit" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="fold" position="after">
|
||||
<field name="invoiceable" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
<record id="edit_project_task_track" model="ir.ui.view">
|
||||
<field name="name">project.task.form.track</field>
|
||||
<field name="model">project.task</field>
|
||||
<field name="inherit_id" ref="project.view_task_form2" />
|
||||
<field name="arch" type="xml">
|
||||
<div name="button_box" position="inside">
|
||||
<!-- The invoiceable field must be maintained for the tests with
|
||||
Form() to work correctly. -->
|
||||
<field name="invoiceable" invisible="1" />
|
||||
<button
|
||||
name="toggle_invoiceable"
|
||||
type="object"
|
||||
invisible="not invoicing_finished_task"
|
||||
class="oe_stat_button"
|
||||
icon="fa-file"
|
||||
>
|
||||
<span
|
||||
class="text-success"
|
||||
invisible="not invoiceable"
|
||||
>Invoiceable</span>
|
||||
<span
|
||||
class="text-danger"
|
||||
invisible="invoiceable"
|
||||
>Not Invoiceable</span>
|
||||
</button>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user