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

@@ -71,3 +71,10 @@ class PurchaseOrder(models.Model):
# {'subtotal': 8932.23},
# ]
return res
class PurchaseOrderLine(models.Model):
_inherit = 'purchase.order.line'
# for optional display in tree view
product_barcode = fields.Char(related='product_id.barcode', string="Product Barcode")