diff --git a/account_usability/models/account_move.py b/account_usability/models/account_move.py
index ff2a329..38bc8bc 100644
--- a/account_usability/models/account_move.py
+++ b/account_usability/models/account_move.py
@@ -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()
diff --git a/account_usability/views/account_move.xml b/account_usability/views/account_move.xml
index 811aa1e..0d45b2f 100644
--- a/account_usability/views/account_move.xml
+++ b/account_usability/views/account_move.xml
@@ -30,6 +30,9 @@
+
+
+
diff --git a/base_usability/views/res_partner.xml b/base_usability/views/res_partner.xml
index a2bd52a..37c9510 100644
--- a/base_usability/views/res_partner.xml
+++ b/base_usability/views/res_partner.xml
@@ -16,6 +16,10 @@
+
+
diff --git a/purchase_usability/models/purchase_order.py b/purchase_usability/models/purchase_order.py
index 6709368..4ac88ef 100644
--- a/purchase_usability/models/purchase_order.py
+++ b/purchase_usability/models/purchase_order.py
@@ -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")
diff --git a/purchase_usability/views/purchase_order.xml b/purchase_usability/views/purchase_order.xml
index 87ff95a..f165427 100644
--- a/purchase_usability/views/purchase_order.xml
+++ b/purchase_usability/views/purchase_order.xml
@@ -34,6 +34,9 @@
analytic.group_analytic_tags
+
+
+
diff --git a/sale_usability/models/sale_order.py b/sale_usability/models/sale_order.py
index 913d7a8..9eb2062 100644
--- a/sale_usability/models/sale_order.py
+++ b/sale_usability/models/sale_order.py
@@ -66,6 +66,9 @@ class SaleOrder(models.Model):
class SaleOrderLine(models.Model):
_inherit = 'sale.order.line'
+ # for optional display in tree view
+ product_barcode = fields.Char(related='product_id.barcode', string="Product Barcode")
+
@api.onchange('product_uom', 'product_uom_qty')
def product_uom_change(self):
# When the user has manually set a custom price
diff --git a/sale_usability/views/sale_order.xml b/sale_usability/views/sale_order.xml
index 3a13d2e..eda1f3f 100644
--- a/sale_usability/views/sale_order.xml
+++ b/sale_usability/views/sale_order.xml
@@ -26,6 +26,9 @@
+
+
+
diff --git a/stock_usability/models/stock_move.py b/stock_usability/models/stock_move.py
index ab25ee2..ec761fd 100644
--- a/stock_usability/models/stock_move.py
+++ b/stock_usability/models/stock_move.py
@@ -2,7 +2,7 @@
# @author Alexis de Lattre
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-from odoo import models, _
+from odoo import fields, models, _
from odoo.exceptions import UserError
import logging
@@ -12,6 +12,9 @@ logger = logging.getLogger(__name__)
class StockMove(models.Model):
_inherit = 'stock.move'
+ # for optional display in tree view
+ product_barcode = fields.Char(related='product_id.barcode', string="Product Barcode")
+
# def name_get(self):
# '''name_get of stock_move is important for the reservation of the
# quants: so want to add the name of the customer and the expected date
@@ -49,6 +52,9 @@ class StockMove(models.Model):
class StockMoveLine(models.Model):
_inherit = 'stock.move.line'
+ # for optional display in tree view
+ product_barcode = fields.Char(related='product_id.barcode', string="Product Barcode")
+
# TODO: I think it's not complete
def button_do_unreserve(self):
for moveline in self:
diff --git a/stock_usability/views/stock_move.xml b/stock_usability/views/stock_move.xml
index 9c7f288..7477de4 100644
--- a/stock_usability/views/stock_move.xml
+++ b/stock_usability/views/stock_move.xml
@@ -58,6 +58,9 @@
states="partially_available,assigned"
icon="fa-ban"/>
+
+
+
@@ -78,6 +81,20 @@
states="partially_available,assigned"
icon="fa-ban"/>
+
+
+
+
+
+
+
+
+ stock.move.line
+
+
+
+
+
diff --git a/stock_usability/views/stock_picking.xml b/stock_usability/views/stock_picking.xml
index 04c2f7c..1b81db0 100644
--- a/stock_usability/views/stock_picking.xml
+++ b/stock_usability/views/stock_picking.xml
@@ -31,8 +31,9 @@
-
-
+
+
+
-
-