Ir al contenido
Menú
Se marcó esta pregunta

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()

Avatar
Descartar

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

Publicaciones relacionadas Respuestas Vistas Actividad
0
mar 15
3328
2
ene 24
14573
1
mar 19
3285
1
mar 15
3780
2
jun 19
9313