Ciao ho fatto come mi avete suggerito
sono andato in configurazione-> Technical--> interfaccia utente --> visualizzioni
qui ho cercato il mio form precisamente
sale.order.form
Al'interno del mio Xml non trvo il mio purchase_price
ho provato anche a cercare per sale_margin ma niente
Qui l'XML del sale.order.form
sale.order.form
<?xml version="1.0"?> <form string="Sales Order" version="7.0"> <header> <button name="invoice_recreate" states="invoice_except" string="Recreate Invoice" groups="base.group_user"/> <button name="invoice_corrected" states="invoice_except" string="Ignore Exception" groups="base.group_user"/> <button name="action_quotation_send" string="Send by Email" type="object" states="draft" class="oe_highlight" groups="base.group_user"/> <button name="action_quotation_send" string="Send by Email" type="object" states="sent" groups="base.group_user"/> <button name="print_quotation" string="Print" type="object" states="draft" class="oe_highlight" groups="base.group_user"/> <button name="print_quotation" string="Print" type="object" states="sent" groups="base.group_user"/> <button name="action_button_confirm" states="draft" string="Confirm Sale" type="object" groups="base.group_user"/> <button name="action_button_confirm" states="sent" string="Confirm Sale" class="oe_highlight" type="object" groups="base.group_user"/> <button name="action_view_invoice" string="View Invoice" type="object" class="oe_highlight" attrs="{'invisible': [('invoice_exists', '=', False)]}" groups="base.group_user"/> <button name="342" string="Create Invoice" type="action" states="manual" class="oe_highlight" groups="base.group_user"/> <button name="copy_quotation" states="cancel" string="New Copy of Quotation" type="object"/> <button name="cancel" states="draft,sent" string="Cancel Quotation" groups="base.group_user"/> <button name="action_cancel" states="manual,progress" string="Cancel Order" type="object" groups="base.group_user"/> <button name="invoice_cancel" states="invoice_except" string="Cancel Order" groups="base.group_user"/> <field name="state" widget="statusbar" statusbar_visible="draft,sent,invoiced,done" statusbar_colors="{"invoice_except":"red","waiting_date":"blue"}"/> </header> <sheet> <h1> <label string="Quotation " attrs="{'invisible': [('state','not in',('draft','sent'))]}"/> <label string="Sales Order " attrs="{'invisible': [('state','in',('draft','sent'))]}"/> <field name="name" class="oe_inline" readonly="1"/> </h1> <group> <group> <field name="partner_id" on_change="onchange_partner_id(partner_id, context)" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options="{"always_reload": True}"/> <field name="partner_invoice_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'invoice'}"/> <field name="partner_shipping_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'delivery'}"/> <field name="project_id" context="{'partner_id':partner_invoice_id, 'default_pricelist_id':pricelist_id, 'default_name':name, 'default_type': 'contract'}" groups="sale.group_analytic_accounting" domain="[('type','in',['view','normal','contract'])]"/> </group> <group> <field name="date_order"/> <field name="shop_id" groups="base.group_no_one" on_change="onchange_shop_id(shop_id, context)" widget="selection"/> <field name="client_order_ref"/> <field domain="[('type','=','sale')]" name="pricelist_id" groups="product.group_sale_pricelist" on_change="onchange_pricelist_id(pricelist_id,order_line)"/> <field name="currency_id" invisible="1"/> </group> </group> <notebook> <page string="Order Lines"> <field name="order_line"> <form string="Sales Order Lines" version="7.0"> <header groups="base.group_user"> <button name="343" states="confirmed" string="Invoice" type="action" icon="terp-document-new"/> <field name="state" widget="statusbar" statusbar_visible="draft,confirmed,done" statusbar_colors="{"exception":"red","cancel":"red"}"/> </header> <group> <group> <field name="product_id" context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}" groups="base.group_user" on_change="product_id_change(parent.pricelist_id, product_id, product_uom_qty, product_uom, product_uos_qty, product_uos, name, parent.partner_id, False, True, parent.date_order, False, parent.fiscal_position, False, context)"/> <label for="product_uom_qty"/> <div> <field context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}" name="product_uom_qty" class="oe_inline" on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, False, False, parent.date_order, False, parent.fiscal_position, True, context)"/> <field name="product_uom" groups="product.group_uom" class="oe_inline oe_no_button" on_change="product_uom_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, False, False, parent.date_order, context)"/> </div> <label for="product_uos_qty" groups="product.group_uos"/> <div groups="product.group_uos"> <field name="product_uos_qty" class="oe_inline"/> <field name="product_uos" options="{"no_open": True}" class="oe_inline"/> </div> <field name="price_unit" groups="base.group_sale_salesman" invisible="1"/> <label for="discount" groups="sale.group_discount_per_so_line"/> <div name="discount" groups="sale.group_discount_per_so_line"> <field name="discount" class="oe_inline"/> % </div> </group> <group> <field name="tax_id" widget="many2many_tags" domain="[('parent_id','=',False),('type_tax_use','<>','purchase')]"/> <field name="type"/> <field name="th_weight"/> <!-- we should put a config wizard for these two fields --> <field name="address_allotment_id"/> </group> </group> <label for="name"/> <field name="name"/> <div groups="base.group_no_one"> <label for="invoice_lines"/> <field name="invoice_lines"/> </div> </form> <tree string="Sales Order Lines" editable="bottom"> <field name="sequence" widget="handle"/> <field name="state" invisible="1"/> <field name="th_weight" invisible="1"/> <field name="product_id" context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}" groups="base.group_user" on_change="product_id_change(parent.pricelist_id, product_id, product_uom_qty, product_uom, product_uos_qty, product_uos, name, parent.partner_id, False, True, parent.date_order, False, parent.fiscal_position, False, context)"/> <field name="name"/> <field name="product_uom_qty" context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}" on_change="product_id_change(parent.pricelist_id, product_id, product_uom_qty, product_uom, product_uos_qty, product_uos, name, parent.partner_id, False, False, parent.date_order, False, parent.fiscal_position, True, context)"/> <field name="product_uom" on_change="product_uom_change(parent.pricelist_id, product_id, product_uom_qty, product_uom, product_uos_qty, product_uos, name, parent.partner_id, False, False, parent.date_order, context)" groups="product.group_uom" options="{"no_open": True}"/> <field name="product_uos_qty" groups="product.group_uos" invisible="1"/> <field name="product_uos" string="UoS" groups="product.group_uos" invisible="1"/> <field name="tax_id" widget="many2many_tags" domain="[('parent_id','=',False),('type_tax_use','<>','purchase')]"/> <field name="price_unit" groups="base.group_sale_salesman" invisible="1"/> <field name="discount" groups="sale.group_discount_per_so_line"/> <field name="price_subtotal"/> </tree> </field> <group class="oe_subtotal_footer oe_right" colspan="2" name="sale_total"> <field name="amount_untaxed" widget="monetary" options="{'currency_field': 'currency_id'}"/> <field name="amount_tax" widget="monetary" options="{'currency_field': 'currency_id'}"/> <div class="oe_subtotal_footer_separator oe_inline"> <label for="amount_total"/> <button name="button_dummy" states="draft,sent" string="(update)" type="object" class="oe_edit_only oe_link"/> </div> <field name="amount_total" nolabel="1" class="oe_subtotal_footer_separator" widget="monetary" options="{'currency_field': 'currency_id'}"/> </group> <div class="oe_clear"/> <field name="note" class="oe_inline" placeholder="Terms and conditions..."/> </page> <page string="Other Information" groups="base.group_user"> <group> <group name="sales_person" groups="base.group_user"> <field name="user_id"/> <field groups="base.group_no_one" name="origin"/> </group> <group name="sale_pay"> <field name="payment_term" widget="selection"/> <field name="fiscal_position" widget="selection"/> <field name="company_id" widget="selection" groups="base.group_multi_company"/> </group> <group> <field name="invoiced"/> <field name="invoice_exists" invisible="1"/> </group> </group> </page> </notebook> </sheet> <div class="oe_chatter"> <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/> <field name="message_ids" widget="mail_thread"/> </div> </form>