How to create wizards in odoo12 Community Version
How to implement it...
Thanks in Advance...
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How to create wizards in odoo12 Community Version
How to implement it...
Thanks in Advance...
Hi,
For creating a wizard first you can define a transient model in the system.
class TestReport(models.TransientModel):
_name = 'test.report'
date_from = fields.Date(string='From')
date_to = fields.Date(string='To')
Then you can define the view in XML as follows,
<record id="view_test_report_wizard" model="ir.ui.view">
<field name="name">Test Report</field>
<field name="model">test.report</field>
<field name="arch" type="xml">
<form string="Choose The Details">
<group>
<group>
<field name="date_from" />
<field name="date_to"/>
</group>
</group>
<footer>
<button name="test_report" string="Print" type="object" class="oe_highlight" />
or
<button string="Cancel" class="oe_link" special="cancel"/>
</footer>
</form>
</field>
</record>
Also, Please see this link for more: How To create wizards in odoo ?
Thanks
Thank You
Hello,
refer this below links
Thank You:)
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ý
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.