OCA / sale-workflow

Odoo Sales, Workflow and Organization
GNU Affero General Public License v3.0
293 stars 1.02k forks source link

sales_order_line_date v15 unable to import module in odoo v15 #2202

Open ljgomezPant opened 2 years ago

ljgomezPant commented 2 years ago

Importing module into odoo v15.2.1.0 generates error.

module installed in odoo: Sales technical name: sale_management v15.2.1.0

Module sale_order_line_date v15.0.1.1.0

Error generated during import of module:

Error while importing module 'sale_order_line_date'.

while parsing /tmp/tmptrktzjeo/sale_order_line_date/views/sale_order_view.xml:3 Error while validating view near:

            <button name="payment_action_capture" type="object" data-hotkey="shift+g" string="Capture Transaction" class="oe_highlight" attrs="{'invisible': [('authorized_transaction_ids', '=', [])]}"/>
            <button name="payment_action_void" type="object" string="Void Transaction" data-hotkey="shift+v" confirm="Are you sure you want to void the authorized transaction? This action can't be undone." attrs="{'invisible': [('authorized_transaction_ids', '=', [])]}"/>
            <button name="544" string="Create Invoice" type="action" class="btn-primary" data-hotkey="q" attrs="{'invisible': [('invoice_status', '!=', 'to invoice')]}"/>
            <button name="544" string="Create Invoice" type="action" context="{'default_advance_payment_method': 'percentage'}" data-hotkey="q" attrs="{'invisible': ['|',('invoice_status', '!=', 'no'), ('state', '!=', 'sale')]}"/>
            <button name="action_quotation_send" string="Send by Email" type="object" states="draft" class="btn-primary" data-hotkey="g"/>

Field "commitment_date" does not exist in model "sale.order.line"

View error context: {'file': '/tmp/tmptrktzjeo/sale_order_line_date/views/sale_order_view.xml', 'line': 6, 'name': 'sale.order.commitment.date.form', 'view': ir.ui.view(1636,), 'view.model': 'sale.order', 'view.parent': ir.ui.view(1524,), 'xmlid': 'sale_order_commitment_date_form_view'}

Make sure those modules are installed and try again.

Result: Sales app no longer functions. unable to open, view, edit, or create quotations or sales orders.

github-actions[bot] commented 2 weeks ago

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.