تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3585 أدوات العرض

Hi, I want to inherit delivery order form and put following. After enter a sample entry and save the data in form, data is not shown in form view. In database value is added. Give me issue solution. Code is entered for ur reference

<record model="ir.ui.view" id="inherit_stock_form_field_fn"> <field name="name">stock.form.inherit.fields</field> <field name="model">stock.picking.out</field> <field name="inherit_id" ref="stock.view_picking_out_form"/> <field name="arch" type="xml"> <field name="stock_journal_id" position="after"> <field name="types_of_deliveries"/> <field name="zasp_status_picking"/> <field name="problem_description_note"/> <field name="cust_warrenty_date"/> </field> </field> </record>

Python file,

class delivery_types(osv.osv): _inherit = "stock.picking.out" _description = "Delivery Types"

_columns = {
    'name': fields.char('Delivery Reference', size=64, select=True, states={'done':[('readonly', True)], 'cancel':[('readonly',True)]}),
    'types_of_deliveries': fields.selection(D_TYPES,'Delivery Type',required="1"),
'cust_warrenty_date': fields.date('Warrenty upto',required=True,),
'sup_warrenty_date': fields.date('Warrenty upto',),
   }
_defaults = {
    'name': '/',
    }

delivery_types()

الصورة الرمزية
إهمال

If your module loads fine, the problem is usually that you are asking the system to display your field in the wrong place. The code could be valid but you are actually not displaying where you really want it. Using xpath to map location you want usually helps

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مارس 15
3425
2
يناير 24
14683
1
مارس 19
3400
1
مارس 15
3780
2
يونيو 19
9404