summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-02-19 08:51:24 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-02-19 08:51:24 +0700
commit672c09c00d8ca5ba3675c223ca0cb31e007f11ad (patch)
tree0e9bd5ca9ba93f39c2f67e2a2a54869ba083101d
parent2f33ecda0f0d51d8e336aad4d7f84777faa4e59c (diff)
<Miqdad> try fix filter invoice marketplace not working
-rw-r--r--fixco_custom/models/account_move.py10
-rw-r--r--fixco_custom/views/account_move.xml2
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 @@
<field name="sale_id" readonly="1" attrs="{'invisible': [('move_type', 'not in', ('out_invoice','entry'))]}"/>
<field name="purchase_order_id" readonly="1" attrs="{'invisible': [('move_type', 'not in', ('in_invoice','entry'))]}"/>
<field name="soo_number" readonly="1"/>
- <field name="invoice_marketplace" readonly="1"/>
<field name="picking_id" readonly="1" attrs="{'invisible': [('move_type', '!=', 'out_invoice')]}"/>
<field name="bill_id" readonly="1" attrs="{'invisible': [('move_type', '!=', 'in_invoice')]}"/>
</field>
@@ -154,6 +153,7 @@
filter_domain="[
('invoice_marketplace', 'ilike', self)
]"/>
+
<field name="soo_number"
string="SOO Number"
filter_domain="[