Dear community,
Is it possible add field in view standard but i only want to see in a new menu item? Not in the standard view.
Kind regards.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Dear community,
Is it possible add field in view standard but i only want to see in a new menu item? Not in the standard view.
Kind regards.
Dear community
I have managed to do it through the context and the default values @api.model def default_get(self, fields_list):
Kind regards
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
0
févr. 24
|
2460 | ||
|
3
mai 24
|
2948 | ||
|
0
janv. 24
|
1766 | ||
|
1
sept. 24
|
1608 | ||
|
5
oct. 24
|
16020 |
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="aurb_xx_action_orders" model="ir.actions.act_window">
<field name="name">Auren Sales Orders</field>
<field name="res_model">sale.order</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="sale.sale_order_view_search_inherit_sale" />
<field name="context">{}</field>
<field name="domain">[('state', 'not in', ('draft', 'sent', 'cancel'))]</field>
</record>
<record id="aurb_xx_view_order_form" model="ir.ui.view">
<field name="name">sale.order.form</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='partner_id']"
position="after">
<field name="xx_tpv" string="TPV" />
</xpath>
</field>
</record>
</data>
</odoo>
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<menuitem id="mn_xx_main" name="aStore" web_icon="xx,static/description/icon.png">
<menuitem id="mn_xx_sale" name="Sale" sequence="10">
<menuitem id="mn_xx_sale_order_action" name="Pedido" sequence="11" action="aurb_xx_action_orders" />
<menuitem id="mn_xx_sale_delivery_action" name="Albaran" sequence="12"
action="stock.action_picking_tree_outgoing" />
<menuitem id="mn_xx_sale_invoice_action" name="Factura" sequence="13"
action="account.action_move_out_invoice_type" />
</menuitem>
<menuitem id="mn_xx_configuration" name="Configuration" sequence="90">
<menuitem id="mn_xx_conf_xx_action" name="aStore" sequence="91" action="act_aurb_xx_tpvs" />
</menuitem>
</menuitem>
</odoo>