-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
- Loading branch information
1 parent
53e5f72
commit 5f0bedc
Showing
11 changed files
with
106 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from . import res_partner | ||
from . import pos_session |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# SPDX-FileCopyrightText: 2024 Coop IT Easy SC | ||
# | ||
# SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
from odoo import models | ||
|
||
|
||
class PosSession(models.Model): | ||
_inherit = "pos.session" | ||
|
||
def _loader_params_res_partner(self): | ||
result = super()._loader_params_res_partner() | ||
result["search_params"]["fields"].append("child_eater_ids") | ||
return result |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" /> | ||
<title>Beescoop Point of sale</title> | ||
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" /> | ||
<title>POS Eater</title> | ||
<style type="text/css"> | ||
|
||
/* | ||
:Author: David Goodger ([email protected]) | ||
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $ | ||
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ | ||
:Copyright: This stylesheet has been placed in the public domain. | ||
Default cascading style sheet for the HTML output of Docutils. | ||
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to | ||
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to | ||
customize this style sheet. | ||
*/ | ||
|
||
|
@@ -360,58 +359,56 @@ | |
</style> | ||
</head> | ||
<body> | ||
<div class="document" id="beescoop-point-of-sale"> | ||
<h1 class="title">Beescoop Point of sale</h1> | ||
<div class="document" id="pos-eater"> | ||
<h1 class="title">POS Eater</h1> | ||
|
||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:1b2557c6c403b8c1ddac87cb59f8bfdfe44bb87c8b17fec33cac593784107c1a | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> | ||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/beescoop/obeesdoo/tree/12.0/beesdoo_pos"><img alt="beescoop/obeesdoo" src="https://img.shields.io/badge/github-beescoop%2Fobeesdoo-lightgray.png?logo=github" /></a></p> | ||
<p>This module : | ||
- adds the eaters of the customer to the POS ActionpadWidget and PaymentScreenWidget. | ||
- maintains “Available in POS” (<cite>available_in_pos</cite>) value when unchecking “Can be Sold” (<cite>sale_ok</cite>). | ||
- hides phone and address field in pos customer list | ||
- do not allow customer creation from the POS</p> | ||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/beescoop/Obeesdoo/tree/16.0/pos_eater"><img alt="beescoop/Obeesdoo" src="https://img.shields.io/badge/github-beescoop%2FObeesdoo-lightgray.png?logo=github" /></a></p> | ||
<p>Adds the eaters of the customer to the POS ActionpadWidget.</p> | ||
<p><strong>Table of contents</strong></p> | ||
<div class="contents local topic" id="contents"> | ||
<ul class="simple"> | ||
<li><a class="reference internal" href="#bug-tracker" id="id1">Bug Tracker</a></li> | ||
<li><a class="reference internal" href="#credits" id="id2">Credits</a><ul> | ||
<li><a class="reference internal" href="#authors" id="id3">Authors</a></li> | ||
<li><a class="reference internal" href="#contributors" id="id4">Contributors</a></li> | ||
<li><a class="reference internal" href="#maintainers" id="id5">Maintainers</a></li> | ||
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-1">Bug Tracker</a></li> | ||
<li><a class="reference internal" href="#credits" id="toc-entry-2">Credits</a><ul> | ||
<li><a class="reference internal" href="#authors" id="toc-entry-3">Authors</a></li> | ||
<li><a class="reference internal" href="#contributors" id="toc-entry-4">Contributors</a></li> | ||
<li><a class="reference internal" href="#maintainers" id="toc-entry-5">Maintainers</a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="section" id="bug-tracker"> | ||
<h1><a class="toc-backref" href="#id1">Bug Tracker</a></h1> | ||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/beescoop/obeesdoo/issues">GitHub Issues</a>. | ||
<h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1> | ||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/beescoop/Obeesdoo/issues">GitHub Issues</a>. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us smashing it by providing a detailed and welcomed | ||
<a class="reference external" href="https://github.com/beescoop/obeesdoo/issues/new?body=module:%20beesdoo_pos%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
<a class="reference external" href="https://github.com/beescoop/Obeesdoo/issues/new?body=module:%20pos_eater%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> | ||
<p>Do not contact contributors directly about support or help with technical issues.</p> | ||
</div> | ||
<div class="section" id="credits"> | ||
<h1><a class="toc-backref" href="#id2">Credits</a></h1> | ||
<h1><a class="toc-backref" href="#toc-entry-2">Credits</a></h1> | ||
<div class="section" id="authors"> | ||
<h2><a class="toc-backref" href="#id3">Authors</a></h2> | ||
<h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2> | ||
<ul class="simple"> | ||
<li>Beescoop - Cellule IT</li> | ||
<li>BEES coop - Cellule IT</li> | ||
<li>Coop IT Easy SC</li> | ||
</ul> | ||
</div> | ||
<div class="section" id="contributors"> | ||
<h2><a class="toc-backref" href="#id4">Contributors</a></h2> | ||
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2> | ||
<ul class="simple"> | ||
<li>Beescoop - Cellule IT</li> | ||
<li>BEES coop - Cellule IT</li> | ||
<li>Coop IT Easy SC</li> | ||
</ul> | ||
</div> | ||
<div class="section" id="maintainers"> | ||
<h2><a class="toc-backref" href="#id5">Maintainers</a></h2> | ||
<p>This module is part of the <a class="reference external" href="https://github.com/beescoop/obeesdoo/tree/12.0/beesdoo_pos">beescoop/obeesdoo</a> project on GitHub.</p> | ||
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2> | ||
<p>This module is part of the <a class="reference external" href="https://github.com/beescoop/Obeesdoo/tree/16.0/pos_eater">beescoop/Obeesdoo</a> project on GitHub.</p> | ||
<p>You are welcome to contribute.</p> | ||
</div> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2024 Coop IT Easy SC | ||
* | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
|
||
.pos .actionpad .button.set-partner .eaters { | ||
font-weight: normal; | ||
display: block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** @odoo-module alias=pos_eater.ActionpadWidget **/ | ||
// SPDX-FileCopyrightText: 2024 Coop IT Easy SC | ||
// | ||
// SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
import Registries from "point_of_sale.Registries"; | ||
import ActionpadWidget from "point_of_sale.ActionpadWidget"; | ||
|
||
const EaterActionpadWidget = (ActionpadWidget) => | ||
class extends ActionpadWidget { | ||
get eaterNames() { | ||
const names = this.props.partner.child_eater_ids.map( | ||
(id) => this.env.pos.db.get_partner_by_id(id).name | ||
); | ||
return names.join(", "); | ||
} | ||
}; | ||
|
||
Registries.Component.extend(ActionpadWidget, EaterActionpadWidget); | ||
export default EaterActionpadWidget; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<!-- | ||
SPDX-FileCopyrightText: 2024 Coop IT Easy SC | ||
SPDX-License-Identifier: AGPL-3.0-or-later | ||
--> | ||
<templates id="template" xml:space="preserve"> | ||
|
||
<t | ||
t-name="ActionpadWidget" | ||
t-inherit="point_of_sale.ActionpadWidget" | ||
t-inherit-mode="extension" | ||
owl="1" | ||
> | ||
<xpath expr="//t[@t-esc='props.partner.name']" position="after"> | ||
<t t-if="props.partner.child_eater_ids"> | ||
<span class="eaters"> | ||
<t t-esc="eaterNames" /> | ||
</span> | ||
</t> | ||
</xpath> | ||
</t> | ||
|
||
</templates> |
This file was deleted.
Oops, something went wrong.