Skip to content

Commit

Permalink
[ADD] base_upflow: module to generate upflow.io payloads
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Matthias BARKAT <matthias.barkat@foodles.co>
  • Loading branch information
petrus-v and Matthias BARKAT committed Sep 4, 2024
1 parent e32c5a9 commit a4c9208
Show file tree
Hide file tree
Showing 42 changed files with 3,311 additions and 0 deletions.
105 changes: 105 additions & 0 deletions base_upflow/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
==============
Base Upflow.io
==============

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d7c3cc9b72154534c57c4158ea7aef658511c0609a2631b2b5d2680065011595
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcredit--control-lightgray.png?logo=github
:target: https://github.com/OCA/credit-control/tree/14.0/base_upflow
:alt: OCA/credit-control
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/credit-control-14-0/credit-control-14-0-base_upflow
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/credit-control&target_branch=14.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|


This modules provide methods to generate `upflow.io <https://upflow.docs.apiary.io/>`_
HTTP API endpoint payloads without any method to communicate with the API.

This module is used by `edi_upflow`, we decide to separate payloads generation logic
from the edi framework in use.

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
:local:

Known issues / Roadmap
======================

* considering `out_receipt` account.move type (probably to be managed likes `out_refund`)?
* test with multi-currency for a given company
* improve the way to handler custom fields to be able to configure them
and automatically generate the payload

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/credit-control/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/credit-control/issues/new?body=module:%20base_upflow%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Pierre Verkest

Contributors
~~~~~~~~~~~~

* `Foodles <https://https://www.foodles.com>`_

* Pierre Verkest <pierreverkest84@gmail.com>
* Matthias BARKAT <matthias.barkat@foodles.co>

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.

.. |maintainer-petrus-v| image:: https://github.com/petrus-v.png?size=40px
:target: https://github.com/petrus-v
:alt: petrus-v

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-petrus-v|

This module is part of the `OCA/credit-control <https://github.com/OCA/credit-control/tree/14.0/base_upflow>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions base_upflow/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
31 changes: 31 additions & 0 deletions base_upflow/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright 2023 Foodles (https://www.foodles.com/)
# @author Pierre Verkest <pierreverkest84@gmail.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Base Upflow.io",
"summary": "Base module to generate Upflow.io API payloads format from odoo object",
"version": "14.0.2.0.1",
"development_status": "Alpha",
"category": "EDI",
"website": "https://github.com/OCA/credit-control",
"author": "Pierre Verkest, Odoo Community Association (OCA)",
"maintainers": ["petrus-v"],
"license": "AGPL-3",
"application": True,
"depends": [
"contacts",
"account",
],
# I'm not sure for test depencies we shoud declared them here
"external_dependencies": {"python": ["jsonschema"]},
"data": [
"views/account_journal.xml",
"views/account_move.xml",
"views/res_partner.xml",
"views/menu.xml",
"datas/res_partner_position.xml",
"security/ir.model.access.csv",
],
"demo": [],
"installable": True,
}
31 changes: 31 additions & 0 deletions base_upflow/datas/res_partner_position.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record
id="upflow_res_partner_upflow_position_accounting"
model="res.partner.upflow.position"
>
<field name="name">Accounting</field>
<field name="code">ACCOUNTING</field>
</record>
<record
id="upflow_res_partner_upflow_position_payer"
model="res.partner.upflow.position"
>
<field name="name">Payer</field>
<field name="code">PAYER</field>
</record>
<record
id="upflow_res_partner_upflow_position_purchaser"
model="res.partner.upflow.position"
>
<field name="name">Purchaser</field>
<field name="code">PURCHASER</field>
</record>
<record
id="upflow_res_partner_upflow_position_sales"
model="res.partner.upflow.position"
>
<field name="name">Sales</field>
<field name="code">SALES</field>
</record>
</odoo>
Loading

0 comments on commit a4c9208

Please sign in to comment.