I want to doisthe following
1. Aformis filled
2.when clickingon the "done" buttonanda dialog boxappears with twofields of the sameform
3.fills andclick onaccept thedialog
4.changes the status of"draft"to"done"
5.the two fieldson the form
1. the contextto pass dataused inthe actionorthe button
asseriouscontext
2. aswould defineinpythonmove from"drafta" done "
Thank you
<header>
<button name="%(action_done)d" type="action"
string="done"
attrs="{'invisible': [('state','=', 'done')]}"
class="oe_highlight"/>
</header>
<sheet>
<field name="name"/>
<field name="field 1" attrs="{'invisible': ['!', ('state', '=', 'done')]}"/>
<field name="field 2" attrs="{'invisible': ['!', ('state', '=', 'done')]}""/>
</sheet>
<field name="arch" type="xml">
<form>
<group class="oe_title">
<field name="field 1"/>
<field name="field 2"/>
</group>
<footer>
<button name="action_done" string="done" type="object" class="btn btn-sm btn-primary"/>
<button string="Cancel" class="btn btn-sm btn-default" special="cancel"/>
</footer>
</form>
</field>
<record id="action_done" model="ir.actions.act_window">
<field name="name">done</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">model.model</field>
<field name="view_mode">form</field>
<field name="view_id" ref="view_model_done_form"/>
<field name="target">new</field>
</record>