跳至内容
菜单
此问题已终结

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
3月 15
3326
2
1月 24
14572
1
3月 19
3281
1
3月 15
3780
2
6月 19
9313