- <group>
- <button name="%(action_pos_box_in)d" string="Put Money In" type="action" states="opened"/>
- <button name="%(action_pos_box_out)d" string="Take Money Out" type="action" states="opened"/>
- <button name="open_frontend_cb" type="object" string="Open Point Of Sale" states="opened" />
- </group>
- <newline/>
- <field name="user_id" />
- <field name="name" />
- <newline/>
- <field name="start_at" attrs="{'insivible' : [('state', '=', 'opening_control')]}"/>
- <field name="stop_at" attrs="{'insivible' : [('state', '=', 'opening_control')]}"/>
- <separator string="Cash Control" colspan="4"/>
- <field name="cash_register_id" invisible="1" />
- <field name="opening_details_ids" colspan="4" nolabel="1" attrs="{'invisible' : [('state', 'not in', ('opening_control',))]}">
- <tree string="Opening Cashbox Lines" editable="bottom">
- <field name="pieces" readonly="1" />
- <field name="number_opening" string="Opening Unit Numbers" on_change="on_change_sub_opening(pieces, number_opening, parent.balance_end)" />
- <field name="subtotal_opening" string="Opening Subtotal" sum="Total"/>
- </tree>
- </field>
-
- <field name="details_ids" colspan="4" nolabel="1" attrs="{'invisible': [('state', '=', 'opening_control')]}">
- <tree string="Cashbox Lines" editable="bottom">
- <field name="pieces" readonly="1" />
- <field name="number_opening" readonly="1"/>
- <field name="subtotal_opening"/>
- <field name="number_closing"/>
- <field name="subtotal_closing"/>
- </tree>
- </field>
-
+ <group>
+ <group>
+ <field name="user_id"/>
+ <field name="config_id" attrs="{'invisible' : [('config_id', '<>', False)]}"/>
+ </group>
+ <group>
+ <field name="start_at" attrs="{'invisible' : [('state', '=', 'opening_control')]}"/>
+ <field name="stop_at" attrs="{'invisible' : [('state', '<>', 'closed')]}"/>
+ </group>
+ <newline/>
+
+ <group string="Opening Cash Control">
+ <field name="opening_details_ids" nolabel="1" colspan="2" attrs="{'readonly' : [('state', 'not in', ('opening_control',))]}">
+ <tree string="Opening Cashbox Lines" editable="bottom">
+ <field name="pieces" readonly="1" />
+ <field name="number_opening" string="Opening Unit Numbers" on_change="on_change_sub_opening(pieces, number_opening)" />
+ <field name="subtotal_opening" string="Opening Subtotal" sum="Total"/>
+ </tree>
+ </field>
+ </group>
+ <group string="Closing Cash Control" attrs="{'invisible': [('state', '=', 'opening_control')]}">
+ <field name="details_ids" nolabel="1" colspan="2">
+ <tree string="Cashbox Lines" editable="bottom">
+ <field name="pieces" readonly="1" />
+ <field name="number_closing"/>
+ <field name="subtotal_closing"/>
+ </tree>
+ </field>
+ </group>