Skip to content

Commit

Permalink
[FIX] pos_customer_comment: fix changes made on odoo/odoo@c585d82
Browse files Browse the repository at this point in the history
  • Loading branch information
suker committed Aug 3, 2023
1 parent 986a093 commit 792481b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pos_customer_comment/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"name": "Point of Sale - Cashier Comment",
"summary": "Display Customer comment in the PoS front office and allow"
" to edit and save it by the cashier",
"version": "16.0.1.0.0",
"version": "16.0.1.0.1",
"category": "Point of Sale",
"maintainers": ["legalsylvain"],
"author": "GRAP,Odoo Community Association (OCA)",
Expand All @@ -21,6 +21,7 @@
"pos_customer_comment/static/src/css/pos_customer_comment.scss",
"pos_customer_comment/static/src/xml/PartnerDetailsEdit.xml",
"pos_customer_comment/static/src/xml/PartnerLine.xml",
"pos_customer_comment/static/src/js/PartnerDetailsEdit.esm.js",
],
"web.assets_tests": [
"pos_customer_comment/tests/tours/PosCustomerComment.tour.js",
Expand Down
1 change: 1 addition & 0 deletions pos_customer_comment/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* Sylvain LE GAL (https://twitter.com/legalsylvain)
* Juan Carlos Bonilla <juancarlos.bonilla@factorlibre.com>
16 changes: 16 additions & 0 deletions pos_customer_comment/static/src/js/PartnerDetailsEdit.esm.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/** @odoo-module **/
import PartnerDetailsEdit from "point_of_sale.PartnerDetailsEdit";
import Registries from "point_of_sale.Registries";

const PartnerDetailsEditComment = (OriginalPartnerDetailsEdit) =>
class extends OriginalPartnerDetailsEdit {
setup() {
super.setup();
this.changes = {
...this.changes,
pos_comment: this.props.partner.pos_comment || "",
};
}
};

Registries.Component.extend(PartnerDetailsEdit, PartnerDetailsEditComment);
2 changes: 1 addition & 1 deletion pos_customer_comment/static/src/xml/PartnerDetailsEdit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
class="detail"
name="pos_comment"
style="height: 100px;"
t-model="changes.pos_comment"
t-on-change="captureChange"
t-att-value="props.partner.pos_comment || ''"
placeholder="Comment"
/>
</div>
Expand Down

0 comments on commit 792481b

Please sign in to comment.