From 672c09c00d8ca5ba3675c223ca0cb31e007f11ad Mon Sep 17 00:00:00 2001 From: Mqdd Date: Thu, 19 Feb 2026 08:51:24 +0700 Subject: try fix filter invoice marketplace not working --- fixco_custom/models/account_move.py | 10 +--------- fixco_custom/views/account_move.xml | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/fixco_custom/models/account_move.py b/fixco_custom/models/account_move.py index 6722714..b1f540e 100644 --- a/fixco_custom/models/account_move.py +++ b/fixco_custom/models/account_move.py @@ -15,7 +15,7 @@ _logger = logging.getLogger(__name__) class AccountMove(models.Model): _inherit = 'account.move' - invoice_marketplace = fields.Char('Invoice Marketplace', compute='_compute_invoice_marketplace') + invoice_marketplace = fields.Char('Invoice Marketplace') address = fields.Char('Address') sale_id = fields.Many2one('sale.order', string='Sale Order') picking_id = fields.Many2one('stock.picking', string='Picking') @@ -62,14 +62,6 @@ class AccountMove(models.Model): ) soo_number = fields.Char('SOO Number') - @api.depends('sale_id') - def _compute_invoice_marketplace(self): - for move in self: - if move.sale_id: - move.invoice_marketplace = move.sale_id.invoice_mp if move.sale_id else False - else: - move.invoice_marketplace = False - @api.depends('line_ids.partner_id') def _compute_partner_compute(self): for move in self: diff --git a/fixco_custom/views/account_move.xml b/fixco_custom/views/account_move.xml index 0fb3cad..ee3cd20 100644 --- a/fixco_custom/views/account_move.xml +++ b/fixco_custom/views/account_move.xml @@ -90,7 +90,6 @@ - @@ -154,6 +153,7 @@ filter_domain="[ ('invoice_marketplace', 'ilike', self) ]"/> +