Add product_barcode in SO lines, PO lines, stock move lines and invoice lines with optional="hide"

Show warning about double VAT partner even when not in editable mode
This commit is contained in:
Alexis de Lattre
2021-04-28 11:27:04 +02:00
parent cfb58ed80f
commit 96bfda6e1b
10 changed files with 52 additions and 12 deletions

View File

@@ -195,6 +195,8 @@ class AccountMoveLine(models.Model):
matched_credit_ids = fields.One2many(string='Partial Reconcile Credit')
reconcile_string = fields.Char(
compute='_compute_reconcile_string', string='Reconcile', store=True)
# for optional display in tree view
product_barcode = fields.Char(related='product_id.barcode', string="Product Barcode")
def show_account_move_form(self):
self.ensure_one()