I have created custom module after but Create New button on top of form not showing i already add the button code on xml view ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
2
Replies
1798
Views
Ok can we use validation in the xml view input fields??
Hi
Please try this example
<record id="model_form" model="ir.ui.view">
<field name="name">model.model.form</field>
<field name="model">model.model</field>
<field name="arch" type="xml">
<form>
<header>
<button name="action_confirm" type="object"
string="Confirm"
states="draft"/>
</header>
</form>
</field>
</record>
Also define the action_confirm function inside the model .
Regards
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Apr 24
|
1039 | ||
|
1
Dec 24
|
178 | ||
|
0
Nov 24
|
69 | ||
|
2
Jul 24
|
713 | ||
|
0
Apr 24
|
563 |