Initial commit: OCA Technical packages (595 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:03 +02:00
commit 2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions

View file

@ -0,0 +1,22 @@
/*
Copyright (C) 2022-Today GRAP (http://www.grap.coop)
@author Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
*/
.pos .partnerlist-screen .partner-details textarea {
padding: 4px;
border-radius: 3px;
border: solid 1px #cecbcb;
margin-bottom: 4px;
background: white;
font-family: "Lato", "Lucida Grande", Helvetica, Verdana, Arial;
color: #555555;
width: 340px;
font-size: 14px;
box-sizing: border-box;
}
.pos .partnerlist-screen .partner-details span.label {
vertical-align: top;
}

View file

@ -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);

View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright (C) 2022-Today GRAP (http://www.grap.coop)
@author Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
-->
<templates id="template" xml:space="preserve">
<t
t-name="PartnerDetailsEdit"
t-inherit="point_of_sale.PartnerDetailsEdit"
t-inherit-mode="extension"
owl="1"
>
<xpath expr="//select[@name='country_id']/.." position="after">
<div class="partner-detail partner-detail-pos-comment">
<span class="label">Comment</span>
<textarea
class="detail"
name="pos_comment"
style="height: 100px;"
t-model="changes.pos_comment"
t-on-change="captureChange"
placeholder="Comment"
/>
</div>
</xpath>
</t>
</templates>

View file

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright (C) 2022-Today GRAP (http://www.grap.coop)
@author Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
-->
<templates id="template" xml:space="preserve">
<t
t-name="PartnerLine"
t-inherit="point_of_sale.PartnerLine"
t-inherit-mode="extension"
owl="1"
>
<xpath expr="//button[hasclass('edit-partner-button')]" position="after">
<div t-if="props.partner.pos_comment != ''">
<i
class="fa fa-comment"
role="img"
aria-label="Has PoS Comment"
title="Has PoS Comment"
/>
</div>
</xpath>
</t>
</templates>