diff --git a/stock_ux/__manifest__.py b/stock_ux/__manifest__.py index 6fa676a9..8d6cf0ba 100644 --- a/stock_ux/__manifest__.py +++ b/stock_ux/__manifest__.py @@ -32,7 +32,6 @@ 'sale_stock', 'report_aeroo', 'stock_voucher', - 'purchase_stock', ], 'data': [ 'security/stock_ux_security.xml', diff --git a/stock_ux/models/__init__.py b/stock_ux/models/__init__.py index c03d9e8c..38014c40 100644 --- a/stock_ux/models/__init__.py +++ b/stock_ux/models/__init__.py @@ -10,6 +10,4 @@ from . import stock_warehouse_orderpoint from . import stock_move_line from . import stock_picking_type -from . import sale_order from . import res_config_settings -from . import purchase_order diff --git a/stock_ux/models/purchase_order.py b/stock_ux/models/purchase_order.py deleted file mode 100644 index 938bf88d..00000000 --- a/stock_ux/models/purchase_order.py +++ /dev/null @@ -1,10 +0,0 @@ -from odoo import _, api, fields, models - - -class PurchaseOrder(models.Model): - _inherit = 'purchase.order' - - def write(self, values): - self = self.with_context(cancel_from_order=True) - return super().write(values) - diff --git a/stock_ux/models/sale_order.py b/stock_ux/models/sale_order.py deleted file mode 100644 index 90dfd296..00000000 --- a/stock_ux/models/sale_order.py +++ /dev/null @@ -1,14 +0,0 @@ -############################################################################## -# For copyright and license notices, see __manifest__.py file in module root -# directory -############################################################################## - -from odoo import models - - -class SaleOrder(models.Model): - _inherit = "sale.order" - - def action_cancel(self): - self = self.with_context(cancel_from_order=True) - return super().action_cancel()