Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
24
sale_stock_line_customer_ref/views/sale_order.xml
Executable file
24
sale_stock_line_customer_ref/views/sale_order.xml
Executable file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2022 Camptocamp SA
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
<record id="view_order_form" model="ir.ui.view">
|
||||
<field name="name">sale.order.form.inherit</field>
|
||||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="sale.view_order_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//field[@name='order_line']/list/field[@name='name']"
|
||||
position="after"
|
||||
>
|
||||
<field name="customer_ref" optional="hide" />
|
||||
</xpath>
|
||||
<xpath
|
||||
expr="//field[@name='order_line']/form//field[@name='analytic_distribution']"
|
||||
position="after"
|
||||
>
|
||||
<field name="customer_ref" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
15
sale_stock_line_customer_ref/views/stock_move.xml
Executable file
15
sale_stock_line_customer_ref/views/stock_move.xml
Executable file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2022 Camptocamp SA
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
<record id="view_stock_move_operations" model="ir.ui.view">
|
||||
<field name="name">stock.move.operations.form.inherit</field>
|
||||
<field name="model">stock.move</field>
|
||||
<field name="inherit_id" ref="stock.view_stock_move_operations" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="product_id" position="after">
|
||||
<field name="customer_ref" invisible="not customer_ref" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
32
sale_stock_line_customer_ref/views/stock_move_line.xml
Executable file
32
sale_stock_line_customer_ref/views/stock_move_line.xml
Executable file
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2022 Camptocamp SA
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
<record id="view_move_line_form" model="ir.ui.view">
|
||||
<field name="name">stock.move.line.form.inherit</field>
|
||||
<field name="model">stock.move.line</field>
|
||||
<field name="inherit_id" ref="stock.view_move_line_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="product_id" position="after">
|
||||
<field name="customer_ref" invisible="not customer_ref" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_stock_move_line_detailed_operation_tree" model="ir.ui.view">
|
||||
<field name="name">stock.move.line.operations.list.inherit</field>
|
||||
<field name="model">stock.move.line</field>
|
||||
<field
|
||||
name="inherit_id"
|
||||
ref="stock.view_stock_move_line_detailed_operation_tree"
|
||||
/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="product_id" position="after">
|
||||
<field
|
||||
name="customer_ref"
|
||||
column_invisible="not context.get('has_customer_ref')"
|
||||
/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
30
sale_stock_line_customer_ref/views/stock_package_level.xml
Executable file
30
sale_stock_line_customer_ref/views/stock_package_level.xml
Executable file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2022 Camptocamp SA
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
<record id="package_level_form_view" model="ir.ui.view">
|
||||
<field name="name">stock.package_level.form.inherit</field>
|
||||
<field name="model">stock.package_level</field>
|
||||
<field name="inherit_id" ref="stock.package_level_form_view" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//field[@name='move_ids']/list/field[@name='product_id']"
|
||||
position="after"
|
||||
>
|
||||
<field
|
||||
name="customer_ref"
|
||||
column_invisible="not parent.has_customer_ref"
|
||||
/>
|
||||
</xpath>
|
||||
<xpath
|
||||
expr="//field[@name='move_line_ids']/list/field[@name='product_id']"
|
||||
position="after"
|
||||
>
|
||||
<field
|
||||
name="customer_ref"
|
||||
column_invisible="not parent.has_customer_ref"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
21
sale_stock_line_customer_ref/views/stock_picking.xml
Executable file
21
sale_stock_line_customer_ref/views/stock_picking.xml
Executable file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2022 Camptocamp SA
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
<record id="view_picking_form" model="ir.ui.view">
|
||||
<field name="name">stock.picking.form.inherit</field>
|
||||
<field name="model">stock.picking</field>
|
||||
<field name="inherit_id" ref="stock.view_picking_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//field[@name='move_ids_without_package']/list/field[@name='product_id']"
|
||||
position="after"
|
||||
>
|
||||
<field
|
||||
name="customer_ref"
|
||||
column_invisible="not parent.has_customer_ref"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
18
sale_stock_line_customer_ref/views/stock_quant_package.xml
Executable file
18
sale_stock_line_customer_ref/views/stock_quant_package.xml
Executable file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2023 Camptocamp SA
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
<record id="view_quant_package_form" model="ir.ui.view">
|
||||
<field name="name">stock.quant.package.form.inherit</field>
|
||||
<field name="model">stock.quant.package</field>
|
||||
<field name="inherit_id" ref="stock.view_quant_package_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//form/sheet/group/group/field[@name='location_id']"
|
||||
position="after"
|
||||
>
|
||||
<field name="customer_ref" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user