Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
18
product_customerinfo_sale/views/product_customerinfo_views.xml
Executable file
18
product_customerinfo_sale/views/product_customerinfo_views.xml
Executable file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!-- Copyright 2022 Tecnativa - Carlos Roca
|
||||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
<record id="action_open_product_customerinfo" model="ir.actions.act_window">
|
||||
<field name="name">Prices for customers</field>
|
||||
<field name="res_model">product.customerinfo</field>
|
||||
<field name="context">{'visible_product_tmpl_id': False}</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
<menuitem
|
||||
id="menu_product_customerinfo"
|
||||
action="action_open_product_customerinfo"
|
||||
name="Prices for customers"
|
||||
parent="sale.menu_sale_config"
|
||||
sequence="1"
|
||||
/>
|
||||
</odoo>
|
||||
31
product_customerinfo_sale/views/sale_view.xml
Executable file
31
product_customerinfo_sale/views/sale_view.xml
Executable file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
product customer code for OpenERP
|
||||
Copyright (C) 2013 Agile Business Group sagl (<http://www.agilebg.com>).
|
||||
Authors, Nicola Malcontenti, nicola.malcontenti@agilebg.com
|
||||
Copyright (C) 2017 Vauxoo (https://www.vauxoo.com) info@vauxoo.com
|
||||
Copyright 2021 ForgeFlow S.L. (https://www.forgeflow.com)
|
||||
The licence is in the file __manifest__.py
|
||||
-->
|
||||
<odoo>
|
||||
<record id="view_order_form" model="ir.ui.view">
|
||||
<field name="name">sale.order.product.code.view.form</field>
|
||||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="sale.view_order_form" />
|
||||
<field name="priority" eval="16" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//field[@name='order_line']/list//field[@name='product_template_id']"
|
||||
position="after"
|
||||
>
|
||||
<field name="product_customer_code" optional="show" />
|
||||
</xpath>
|
||||
<xpath
|
||||
expr="//field[@name='order_line']/form//field[@name='product_id']"
|
||||
position="after"
|
||||
>
|
||||
<field name="product_customer_code" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user