diff options
| -rw-r--r-- | fixco_custom/models/account_move.py | 10 | ||||
| -rw-r--r-- | 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 @@ <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="[ |
