Browse Source

[ADD] backport session summary report with fr translation

pull/320/head
Pierrick Brun 7 years ago
committed by Sylvain LE GAL
parent
commit
a9364c616d
  1. 72
      pos_report_session_summary/README.rst
  2. 0
      pos_report_session_summary/__init__.py
  3. 22
      pos_report_session_summary/__manifest__.py
  4. 148
      pos_report_session_summary/i18n/fr.po
  5. 3
      pos_report_session_summary/readme/DESCRIPTION.rst
  6. 1
      pos_report_session_summary/readme/USAGE.rst
  7. 11
      pos_report_session_summary/session_summary_report.xml
  8. 122
      pos_report_session_summary/views/report_session_summary.xml

72
pos_report_session_summary/README.rst

@ -0,0 +1,72 @@
==========================
POS report Session Summary
==========================
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github
:target: https://github.com/OCA/pos/tree/10.0/pos_report_session_summary
:alt: OCA/pos
.. |badge4| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/184/10.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4|
Add the POS Session Summary report removed in 10.0
see : https://github.com/odoo/odoo/commit/e741de8b0c152279eb2d20faa77d06df8e50b91a
**Table of contents**
.. contents::
:local:
Usage
=====
In a POS Session use Print -> Session Summary
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/pos/issues>`_.
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 feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
=======
Authors
~~~~~~~
* Akretion
* Odoo SA
Maintainers
~~~~~~~~~~~
This module is maintained by the OCA.
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
This module is part of the `OCA/pos <https://github.com/OCA/pos/tree/10.0/pos_report_session_summary>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

0
pos_report_session_summary/__init__.py

22
pos_report_session_summary/__manifest__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# copyright Odoo SA
# copyright OCA
# Licence : LGPL-3
{
'name': 'POS report Session Summary',
'version': '10.0.1.0.0',
'category': 'Point Of Sale',
'summary': 'Adds a Session Summary PDF report on the POS session',
'author': 'Akretion, Odoo SA, Odoo Community Association (OCA)',
'license': 'LGPL-3',
'depends': ['point_of_sale'],
'data': [
'session_summary_report.xml',
'views/report_session_summary.xml',
],
'installable': True,
'application': False,
'website': 'https://github.com/OCA/pos',
'auto_install': False,
}

148
pos_report_session_summary/i18n/fr.po

@ -0,0 +1,148 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_report_session_summary
#
# Translators:
# Clo <clo@odoo.com>, 2015
# invitu <contact@invitu.com>, 2016
# David Bertha <development@fonteynethekitchen.be>, 2016
# Fabien Pinckaers <fp@openerp.com>, 2015
# Florian Hatat, 2015
# Loic <loic.richard2@gmail.com>, 2015
# Martin Trigaux, 2015-2017
# Maxime Chambreuil <mchambreuil@ursainfosystems.com>, 2015-2016
# Melanie Bernard <mbe@odoo.com>, 2015
# Olivier Dony <odo@odoo.com>, 2016
# Quentin THEURET <odoo@kerpeo.com>, 2016
# Shark McGnark <peculiarcheese@gmail.com>, 2016
# Sylvain LE GAL <sylvain.legal@grap.coop>, 2015
# Xavier Symons <xsy@openerp.com>, 2015
# user 2 odoo <user2odoo@gmail.com>, 2015
# zoe <yann.hoareau@migs.re>, 2015
msgid ""
msgstr ""
"Project-Id-Version: Odoo 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-03 10:07+0000\n"
"PO-Revision-Date: 2018-02-07 11:23+0000\n"
"Last-Translator: Pierrick Brun\n"
"Language-Team: French (http://www.transifex.com/odoo/odoo-9/language/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "<strong>Closing Date</strong>:<br/>"
msgstr "<strong>Date de clôture</strong> :<br/>"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "<strong>Currency</strong>"
msgstr "<strong>Devise</strong>"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "<strong>Difference</strong>"
msgstr "<strong>Différence</strong>"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "<strong>Ending Balance</strong>"
msgstr "<strong>Solde final</strong>"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "<strong>Journal</strong>"
msgstr "<strong>Journal</strong>"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "<strong>Opening Date</strong>:<br/>"
msgstr "<strong>Date d'ouverture</strong> :<br/>"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "<strong>Point of Sale</strong>:<br/>"
msgstr "<strong>Point de vente</strong> :<br/>"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "<strong>Reference</strong>"
msgstr "Référence"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "<strong>Responsible</strong>:<br/>"
msgstr "<strong>Responsable</strong>:<br/>"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "<strong>Starting Balance</strong>"
msgstr "<strong>Solde de départ</strong>"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "<strong>Status</strong>"
msgstr "<strong>Statut</strong>"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "<strong>Total Transactions</strong>"
msgstr "<strong>Total des transactions</strong>"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "Account"
msgstr "Compte"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "Amount"
msgstr "Montant"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "Date"
msgstr "Date"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "Description"
msgstr "Description"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "Partner"
msgstr "Partenaire"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "Reference"
msgstr "Référence"
#. module: pos_report_session_summary
#: model:ir.actions.report.xml,name:pos_report_session_summary.action_report_pos_session_summary
msgid "Session Summary"
msgstr "Résumé de la session"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "Session Summary:"
msgstr "Résumé de la session :"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "Statement Details:"
msgstr "Détails du Relevé"
#. module: pos_report_session_summary
#: model:ir.ui.view,arch_db:pos_report_session_summary.report_session_summary
msgid "Statement Summary"
msgstr "Résumé du relevé"

3
pos_report_session_summary/readme/DESCRIPTION.rst

@ -0,0 +1,3 @@
Add the POS Session Summary report removed in 10.0
see : https://github.com/odoo/odoo/commit/e741de8b0c152279eb2d20faa77d06df8e50b91a

1
pos_report_session_summary/readme/USAGE.rst

@ -0,0 +1 @@
In a POS Session use Print -> Session Summary

11
pos_report_session_summary/session_summary_report.xml

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<odoo>
<report
id="action_report_pos_session_summary"
string="Session Summary"
model="pos.session"
report_type="qweb-pdf"
name="pos_report_session_summary.report_session_summary"
file="pos_report_session_summary.report_session_summary"
/>
</odoo>

122
pos_report_session_summary/views/report_session_summary.xml

@ -0,0 +1,122 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="report_session_summary">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="report.internal_layout">
<div class="page">
<h2>Session Summary: <span t-field="o.name"/></h2>
<div class="row mt32 mb32">
<div class="col-xs-3">
<strong>Responsible</strong>:<br/>
<span t-field="o.user_id"/>
</div>
<div class="col-xs-3">
<strong>Point of Sale</strong>:<br/>
<span t-field="o.config_id"/>
</div>
<div class="col-xs-3">
<strong>Opening Date</strong>:<br/>
<span t-field="o.start_at"/>
</div>
<div class="col-xs-3">
<strong>Closing Date</strong>:<br/>
<span t-field="o.stop_at"/>
</div>
</div>
<h4>Statement Summary</h4>
<table class="table table-condensed mb32">
<thead>
<tr>
<th>
<strong>Reference</strong>
</th>
<th>
<strong>Journal</strong>
</th>
<th class="text-right">
<strong>Starting Balance</strong>
</th>
<th class="text-right">
<strong>Total Transactions</strong>
</th>
<th class="text-right">
<strong>Ending Balance</strong>
</th>
<th class="text-right">
<strong>Difference</strong>
</th>
<th class="text-right" groups="base.group_multi_currency">
<strong>Currency</strong>
</th>
<th class="text-right">
<strong>Status</strong>
</th>
</tr>
</thead>
<tbody>
<tr t-foreach="o.statement_ids" t-as="statement">
<td><span t-field="statement.name"/></td>
<td><span t-field="statement.journal_id"/></td>
<td class="text-right">
<span t-field="statement.balance_start"
t-field-options='{"widget": "monetary", "display_currency": "statement.currency_id"}'/>
</td>
<td class="text-right">
<span t-field="statement.total_entry_encoding"
t-field-options='{"widget": "monetary", "display_currency": "statement.currency_id"}'/>
</td>
<td class="text-right">
<span t-field="statement.balance_end_real"
t-field-options='{"widget": "monetary", "display_currency": "statement.currency_id"}'/>
</td>
<td class="text-right">
<span t-field="statement.difference"
t-field-options='{"widget": "monetary", "display_currency": "statement.currency_id"}'/>
</td>
<td class="text-right" groups="base.group_multi_currency">
<span t-field="statement.currency_id"/>
</td>
<td class="text-right"><span t-field="statement.state"/></td>
</tr>
</tbody>
</table>
<t t-foreach="o.statement_ids" t-as="statement">
<h4 t-if="statement.line_ids">Statement Details: <span t-esc="statement.name"/></h4>
<table class="table table-condensed" t-if="statement.line_ids">
<thead>
<tr>
<th>Date</th>
<th>Description</th>
<th>Reference</th>
<th>Partner</th>
<th>Account</th>
<th class="text-right">Amount</th>
</tr>
</thead>
<tbody>
<tr t-foreach="statement.line_ids" t-as="line">
<td><span t-field="line.date"/></td>
<td><span t-field="line.name"/></td>
<td><span t-field="line.ref"/></td>
<td><span t-field="line.partner_id"/></td>
<td><span t-field="line.account_id"/></td>
<td class="text-right">
<span t-field="line.amount"
t-field-options='{"widget": "monetary", "display_currency": "statement.currency_id"}'/>
</td>
</tr>
</tbody>
</table>
</t>
</div>
</t>
</t>
</t>
</template>
</odoo>
Loading…
Cancel
Save