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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 2 24
|
2682 | ||
|
3
thg 5 24
|
3623 | ||
|
0
thg 1 24
|
1979 | ||
|
1
thg 9 24
|
1828 | ||
|
5
thg 10 24
|
17427 |
<?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>