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

I am trying to add a delivery date field to the sales order line with a custom module

[quote]

from odoo import models, fields, api


class SaleOrderLine(models.Model):

    _inherit = 'sale.order.line'


    delivery_date = fields.Date(

        string="Delivery Date",

        help="Delivery date for this order line",

        store=True

    )

...


[/quote]

even though the module installs, the additional field is not created in the model sale.order.line


this is on V18 on a fresh db with only the sale module installed; what am I missing? 

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

I found out that the web interface Apps...Import module may silently fail AND still show the module as installed.

Installing the module through the command line allowed me to fix an error and have it functional.


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