@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id= "template" xml:space= "preserve" >
<t t-name= "CreateProductPopup" owl= "1" >
<div class= "popup product-line-popup" >
<div class= "popup product-line-popup" style= "max-width: 684px;" >
<main class= "body" >
<div >
<header >
@ -13,25 +13,33 @@
<div class= "product-img-create-popup" >
<img t-att-src= "imageUrl" id= "img_url_tag_create" />
</div>
<div class= "field_div" >
<label for= "img_field" class= "field_label" > Image</label>
<div class= "field_div" style= "display:flex; margin-bottom: 15px;" >
<label for= "img_field" class= "field_label" style= "margin-right:10px; margin-top: 10px; width: 120px; display: inline-block; text-align: left;" > Image</label>
<input type= "file" id= "img_field" class= "field_input" name= "img_field"
accept="image/*"/>
</div>
<div class= "field_div" >
<label for= "display_name" class= "field_label" > Name</label>
<div class= "field_div" style= "display:flex; margin-bottom: 15px;" >
<label for= "display_name" class= "field_label" style= "margin-right:10px; margin-top: 10px; width: 120px; display: inline-block; text-align: left;" > Name</label>
<input type= "text" name= "display_name" class= "field_input" id= "display_name" />
</div>
<div class= "field_div" >
<label for= "list_price" class= "field_label" > Price</label>
<div class= "field_div" style= "display:flex; margin-bottom: 15px;" >
<label for= "list_price" class= "field_label" style= "margin-right:10px; margin-top: 10px; width: 120px; display: inline-block; text-align: left;" > Price</label>
<input type= "text" name= "list_price" class= "field_input" id= "list_price" />
</div>
<div class= "field_div" >
<label for= "list_price" class= "field_label" > Cost</label>
<div class= "field_div" style= "display:flex; margin-bottom: 15px;" >
<label for= "list_price" class= "field_label" style= "margin-right:10px; margin-top: 10px; width: 120px; display: inline-block; text-align: left;" > Cost</label>
<input type= "text" name= "cost_price" class= "field_input" id= "cost_price" />
</div>
<div class= "field_div" style= "display:flex" >
<label for= "category" class= "field_label" > Category</label>
<div class= "field_div" style= "display:flex; margin-bottom: 15px;" >
<label for= "barcode" class= "field_label" style= "margin-right:10px; margin-top: 10px; width: 120px; display: inline-block; text-align: left;" > Barcode</label>
<input type= "text" name= "barcode" class= "field_input" id= "barcode" />
</div>
<div class= "field_div" style= "display:flex; margin-bottom: 15px;" >
<label for= "default_code" class= "field_label" style= "margin-right:10px; margin-top: 10px; width: 120px; display: inline-block; text-align: left;" > Default Code</label>
<input type= "text" name= "default_code" class= "field_input" id= "default_code" />
</div>
<div class= "field_div" style= "display:flex; margin-bottom: 15px;" >
<label for= "category" class= "field_label" style= "margin-right:10px; margin-top: 10px; width: 120px; display: inline-block; text-align: left;" > Category</label>
<select name= "category" class= "form-control" id= "product_category" >
<t t-foreach= "env.pos.db.category_by_id" t-as= "category"
t-key="env.pos.db.category_by_id[category].id">