summaryrefslogtreecommitdiff
path: root/fixco_custom/models/account_move.py
diff options
context:
space:
mode:
Diffstat (limited to 'fixco_custom/models/account_move.py')
-rw-r--r--fixco_custom/models/account_move.py10
1 files changed, 1 insertions, 9 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: