diff --git a/pos_product_create_edit/__manifest__.py b/pos_product_create_edit/__manifest__.py index d1f43b064..872b44708 100644 --- a/pos_product_create_edit/__manifest__.py +++ b/pos_product_create_edit/__manifest__.py @@ -20,7 +20,7 @@ ############################################################################# { 'name': 'Product Create Or Edit From Point of Sale ', - 'version': '16.0.1.0.0', + 'version': '16.0.1.0.1', 'summary': 'This Module will help to create and edit products directly from point of sale.', 'category': 'Point of Sale', 'author': 'Cybrosys Techno Solutions', diff --git a/pos_product_create_edit/doc/RELEASE_NOTES.md b/pos_product_create_edit/doc/RELEASE_NOTES.md index c7576ac9b..7fdfa00f9 100644 --- a/pos_product_create_edit/doc/RELEASE_NOTES.md +++ b/pos_product_create_edit/doc/RELEASE_NOTES.md @@ -5,7 +5,7 @@ #### ADD Initial Commit Product Create & Edit From Point Of Sale - - - - +#### 12.04.2023 +#### Version 16.0.1.0.1 +#### UPDATE +Updated the barcode field and internal reference fields. \ No newline at end of file diff --git a/pos_product_create_edit/static/description/assets/screenshots/2.jpg b/pos_product_create_edit/static/description/assets/screenshots/2.jpg deleted file mode 100644 index 119d14fd5..000000000 Binary files a/pos_product_create_edit/static/description/assets/screenshots/2.jpg and /dev/null differ diff --git a/pos_product_create_edit/static/description/assets/screenshots/2.png b/pos_product_create_edit/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..703255c38 Binary files /dev/null and b/pos_product_create_edit/static/description/assets/screenshots/2.png differ diff --git a/pos_product_create_edit/static/description/assets/screenshots/3.png b/pos_product_create_edit/static/description/assets/screenshots/3.png index c7524d409..bc09e325c 100644 Binary files a/pos_product_create_edit/static/description/assets/screenshots/3.png and b/pos_product_create_edit/static/description/assets/screenshots/3.png differ diff --git a/pos_product_create_edit/static/description/assets/screenshots/4.png b/pos_product_create_edit/static/description/assets/screenshots/4.png index 4c0d95a8a..bdceb46c9 100644 Binary files a/pos_product_create_edit/static/description/assets/screenshots/4.png and b/pos_product_create_edit/static/description/assets/screenshots/4.png differ diff --git a/pos_product_create_edit/static/description/assets/screenshots/hero.gif b/pos_product_create_edit/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..0dd0bc935 Binary files /dev/null and b/pos_product_create_edit/static/description/assets/screenshots/hero.gif differ diff --git a/pos_product_create_edit/static/description/assets/screenshots/hero.webp b/pos_product_create_edit/static/description/assets/screenshots/hero.webp deleted file mode 100644 index 1c0391ae8..000000000 Binary files a/pos_product_create_edit/static/description/assets/screenshots/hero.webp and /dev/null differ diff --git a/pos_product_create_edit/static/description/index.html b/pos_product_create_edit/static/description/index.html index 3a7c6a549..2e78e4cf8 100644 --- a/pos_product_create_edit/static/description/index.html +++ b/pos_product_create_edit/static/description/index.html @@ -25,7 +25,7 @@ Product Create & Edit From Pos

You can directly edit or create new product from point of sale.

- @@ -163,7 +163,7 @@

On the product screen you can see All products Listed.Each products have a edit button on the right side. By clicking on the button you can edit the product directly from pos.

- +

Product Edit popup diff --git a/pos_product_create_edit/static/src/css/ProductList.css b/pos_product_create_edit/static/src/css/ProductList.css index 8a2c159ec..b7a3c4eb8 100644 --- a/pos_product_create_edit/static/src/css/ProductList.css +++ b/pos_product_create_edit/static/src/css/ProductList.css @@ -27,8 +27,8 @@ select.form-control{ border: none; box-shadow: 0px 0px 0px 1px gainsboro inset; box-sizing: border-box; - width: 75%; + width: 85%; } i.fa.fa-plus.create_btn{ margin-right:5px; -} \ No newline at end of file +} diff --git a/pos_product_create_edit/static/src/js/ProductCreatePopup.js b/pos_product_create_edit/static/src/js/ProductCreatePopup.js index 9ead58dc5..69b73662b 100644 --- a/pos_product_create_edit/static/src/js/ProductCreatePopup.js +++ b/pos_product_create_edit/static/src/js/ProductCreatePopup.js @@ -50,6 +50,8 @@ class CreateProductPopup extends AbstractAwaitablePopup { let price = $("#list_price").val(); let cost = $("#cost_price").val(); let category = $("#product_category").val(); + let barcode = $("#barcode").val(); + let default_code = $("#default_code").val(); let values = {}; if (base64_img) { values["image_1920"] = base64_img; @@ -66,6 +68,12 @@ class CreateProductPopup extends AbstractAwaitablePopup { if (category) { values["pos_categ_id"] = category; } + if (barcode) { + values["barcode"] = barcode; + } + if (default_code) { + values["default_code"] = default_code; + } values["available_in_pos"] = true; await this.rpc({ model: "product.product", diff --git a/pos_product_create_edit/static/src/js/ProductEditPopup.js b/pos_product_create_edit/static/src/js/ProductEditPopup.js index 7cc4f1733..f1b5fae73 100644 --- a/pos_product_create_edit/static/src/js/ProductEditPopup.js +++ b/pos_product_create_edit/static/src/js/ProductEditPopup.js @@ -58,6 +58,12 @@ class EditProductPopup extends AbstractAwaitablePopup { if ($("#product_category").val()) { values["pos_categ_id"] = parseInt($("#product_category").val()); } + if ($("#barcode").val()) { + values["barcode"] = parseInt($("#barcode").val()); + } + if ($("#default_code").val()) { + values["default_code"] = parseInt($("#default_code").val()); + } this.rpc({ model: "product.product", method: "write", @@ -66,6 +72,8 @@ class EditProductPopup extends AbstractAwaitablePopup { if (result) { this.props.product.display_name = $("#display_name").val(); this.props.product.lst_price = $("#list_price").val(); + this.props.product.barcode = $("#barcode").val(); + this.props.product.default_code = $("#default_code").val(); this.props.product.pos_categ_id = [ parseInt($("#product_category").val()), $("#product_category")[0].selectedOptions[0].title, diff --git a/pos_product_create_edit/static/src/xml/ProductCreatePopup.xml b/pos_product_create_edit/static/src/xml/ProductCreatePopup.xml index 3ca61e67d..639c6a540 100644 --- a/pos_product_create_edit/static/src/xml/ProductCreatePopup.xml +++ b/pos_product_create_edit/static/src/xml/ProductCreatePopup.xml @@ -1,7 +1,7 @@ -

-
- +
+
-
- +
+
-
- +
+
-
- +
+
-
- +
+
-
- +
+ + +
+
+ + +
+
+
-
- +
+
-
- +
+
-
- +
+ + +
+
+ + +
+
+