Passa al contenuto
Menu
La domanda è stata contrassegnata
1 Rispondi
628 Visualizzazioni

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? 

Avatar
Abbandona
Autore Risposta migliore

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.


Avatar
Abbandona