stock_usability: Add product_barcode on orderpoint tree view (optional hide)

This commit is contained in:
Alexis de Lattre
2024-09-30 07:47:36 +02:00
parent 36f277940c
commit 3a11c99ccb
2 changed files with 4 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ class StockWarehouseOrderpoint(models.Model):
# In the 'stock' module, the default value for 'trigger' is 'auto'
# but all the Odoo deployments I've seen so far need 'manual' by default
trigger = fields.Selection(default='manual')
product_barcode = fields.Char(related='product_id.barcode', string="Product Barcode")
def _procure_orderpoint_confirm(
self, use_new_cursor=False, company_id=None, raise_user_error=True):