Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
649 Lượt xem

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? 

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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.


Ảnh đại diện
Huỷ bỏ