From e8d17f25b05a8180d00277bd5d8e267ada05a5a3 Mon Sep 17 00:00:00 2001 From: Elouan Le Bars Date: Tue, 24 Dec 2019 11:16:56 +0100 Subject: [PATCH 1/2] [ADD] beesdoo_pos_reporting --- beesdoo_pos_reporting/__manifest__.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 beesdoo_pos_reporting/__manifest__.py diff --git a/beesdoo_pos_reporting/__manifest__.py b/beesdoo_pos_reporting/__manifest__.py new file mode 100644 index 0000000..29d381a --- /dev/null +++ b/beesdoo_pos_reporting/__manifest__.py @@ -0,0 +1,15 @@ +# Copyright 2019 Coop IT Easy SCRLfs () +# - Elouan LE BARS - +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +{ + "name": "Beesdoo POS Reporting", + "summary": "Enhance POS with features allowing statistics and reporting.", + "description": "", + "version": "12.0.1.0.0", + "category": "Point of Sale", + "website": "https://github.com/beescoop/Obeesdoo", + "author": "Coop IT Easy SCRLfs", + "license": "AGPL-3", + "depends": ["point_of_sale"], + "data": [], +} From 118e6ca82d7c4bb7e0eddc3fac4766519b2ea873 Mon Sep 17 00:00:00 2001 From: Elouan Le Bars Date: Tue, 24 Dec 2019 11:17:24 +0100 Subject: [PATCH 2/2] [CHG] beesdoo_pos_reporting : store pos_order_count field in res_partner --- beesdoo_pos_reporting/__init__.py | 1 + beesdoo_pos_reporting/models/__init__.py | 1 + beesdoo_pos_reporting/models/res_partner.py | 7 +++++++ 3 files changed, 9 insertions(+) create mode 100644 beesdoo_pos_reporting/__init__.py create mode 100644 beesdoo_pos_reporting/models/__init__.py create mode 100644 beesdoo_pos_reporting/models/res_partner.py diff --git a/beesdoo_pos_reporting/__init__.py b/beesdoo_pos_reporting/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/beesdoo_pos_reporting/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/beesdoo_pos_reporting/models/__init__.py b/beesdoo_pos_reporting/models/__init__.py new file mode 100644 index 0000000..91fed54 --- /dev/null +++ b/beesdoo_pos_reporting/models/__init__.py @@ -0,0 +1 @@ +from . import res_partner diff --git a/beesdoo_pos_reporting/models/res_partner.py b/beesdoo_pos_reporting/models/res_partner.py new file mode 100644 index 0000000..b74a24e --- /dev/null +++ b/beesdoo_pos_reporting/models/res_partner.py @@ -0,0 +1,7 @@ +from odoo import fields, models + + +class ResPartner(models.Model): + _inherit = "res.partner" + + pos_order_count = fields.Integer(store=True,)