Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <record id="jt_ros_booking_form" model="ir.ui.view">
- <field name="name">jt.ros.booking.form</field>
- <field name="model">jt.ros.booking</field>
- <field name="arch" type="xml">
- <form string="Booking">
- <header>
- <button name="done" string="Done" states="draft,open" type="object"
- groups="jt_ros_core.jt_group_app_office_user"/>
- <button name="set_to_draft" string="Set To Draft" states="cancel" type="object"
- groups="jt_ros_core.jt_group_app_office_user"/>
- <button name="cancel" string="Cancel" states="draft,open" type="object"
- groups="jt_ros_core.jt_group_app_office_user"
- confirm="Are you really want to Cancel this Booking?"/>
- <button name="%(jt_ros_booking_update_commodity_wizard_action)d" string="Update Commodity"
- states="draft,open" type="action" context="{'default_booking_id': id}"/>
- <field name="state" widget="statusbar" statusbar_visible="draft,open,done"/>
- </header>
- <sheet>
- <div class="oe_button_box" name="button_box">
- </div>
- <div class="oe_title">
- <h1>
- <field name="name" attrs="{'readonly':[('id','!=',False)]}" nolabel="1"/>
- </h1>
- </div>
- <group>
- <field name="id" invisible="1"/>
- <field name="booking_request_id" invisible="1"/>
- <group>
- <field name="partner_id"
- domain="[('is_company', '=', True)]" context="{'default_is_company': True}"
- options="{'create': False, 'create_edit' : False}"/>
- <!--domain="[('is_company', '=', True)]" context="{'default_is_company': True, 'default_supplier': supplier, 'default_customer': customer}"-->
- <field name="sale_contract_id"/>
- <field name="date" readonly="True"/>
- <field name="supplier" invisible="1"/>
- <field name="contract_number" invisible="1"/>
- </group>
- <group>
- <field name="consignee_id"/>
- <field name="notify_party_id"/>
- <field name="shipper_id"/>
- <field name="special_handling_requirement"/>
- <field name="movement_subject_to"/>
- <field name="physical_characteristics"/>
- <field name="chemical_composition"/>
- <field name="basel_no"/>
- <field name="type_of_packages"/>
- <field name="freight_prepaid"/>
- <field name="free_time"/>
- <field name="bl_type"/>
- </group>
- </group>
- <notebook>
- <page string="Lines">
- <field name="booking_line_ids"
- context="{'form_view_ref': 'jt_ros_booking.jt_ros_booking_line_form',
- 'default_partner_id': partner_id}"/>
- <group class="oe_subtotal_footer oe_right" colspan="6" col="3" name="container_number_section">
- <label for="actual_container_number" string="Number of containers"/>
- <div>
- <field name="actual_container_number" class="container-number-inline"/>/<field name="container_number" class="oe_inline"/>
- </div>
- </group>
- </page>
- </notebook>
- <field name="notes" placeholder="Booking Notes"/>
- </sheet>
- <div class="oe_chatter">
- <field name="message_follower_ids" widget="mail_followers"/>
- <field name="message_ids" widget="mail_thread"/>
- </div>
- </form>
- </field>
- </record>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement