mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-19 09:51:59 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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);
|
||||
|
|
@ -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>
|
||||
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue