Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
626 Widoki

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? 

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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.


Awatar
Odrzuć