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
- Účetnictví
- Sklad
- PoS
- Project
- MRP
This question has been flagged
2
Odpovědi
2716
Zobrazení
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!
Přihlásit seRelated Posts | Odpovědi | Zobrazení | Aktivita | |
---|---|---|---|---|
|
1
dub 24
|
2426 | ||
|
1
pro 24
|
3489 | ||
|
0
lis 24
|
1449 | ||
|
2
čvc 24
|
2944 | ||
|
0
dub 24
|
2009 |