Odoo Help

0

Unable to save customized field in delivery order form?

By
Vikram
on 12/3/13, 4:59 AM 779 views

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

kaynis
on 12/3/13, 6:02 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 12/3/13, 4:59 AM
Seen: 779 times
Last updated: 3/16/15, 8:10 AM