Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bealdav committed Jul 18, 2024
1 parent 3bcc425 commit a0889c0
Show file tree
Hide file tree
Showing 18 changed files with 351 additions and 371 deletions.
74 changes: 45 additions & 29 deletions account_factoring_receivable_balance/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,34 @@
Account Factoring Receivable Balance
====================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d4d835feafe4667879d80d5c7c2cd8fa8b6367275f945cdcf1ffd589249d50f3
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-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%2Fodoo--factoring-lightgray.png?logo=github
:target: https://github.com/OCA/odoo-factoring/tree/15.0/account_factoring_receivable_balance
:alt: OCA/odoo-factoring
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/odoo-factoring-15-0/odoo-factoring-15-0-account_factoring_receivable_balance
:alt: Translate me on Weblate
.. |badge3| image:: https://img.shields.io/badge/github-Akretion%2Fhttps://github.com/akretion/odoo--factoring/tree/16.0-lightgray.png?logo=github
:target: https://github.com/Akretion/https://github.com/akretion/odoo-factoring/tree/16.0/tree/16.0/account_factoring_receivable_balance
:alt: Akretion/https://github.com/akretion/odoo-factoring/tree/16.0

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

see account_factoring_receivable_balance_bpce module


ALERT : this module have been ported to 17.0


see https://github.com/OCA/l10n-france/pull/555

**Table of contents**

.. contents::
Expand All @@ -35,7 +41,7 @@ Configuration
To implement your own factor connector, see account_factoring_receivable_balance_bpce module.


At the minimum, you have to define
At the minimum, you have to define this Subrogation code


.. code-block:: python
Expand All @@ -53,12 +59,18 @@ At the minimum, you have to define
"datas": self._prepare_factor_file_data_myownfactor(),
}
def _prepare_factor_file_myownfactor(self):
def _prepare_factor_file_data_myownfactor(self):
...
return base64.b64encode(data)
def _get_partner_field(self):
res = super()._get_partner_field()
if self.factor_type == "myownfactor":
return "myownfactor_factoring_balance"
return res
Other settings in journal
this journal code


.. code-block:: python
Expand All @@ -71,6 +83,21 @@ Other settings in journal
)
this partner code


.. code-block:: python
class ResPartner(models.Model):
_inherit = "res.partner"
myownfactor_factoring_balance = fields.Boolean(
string="Use MyOwnFactor factoring balance",
groups="account.group_account_invoice",
company_dependent=True,
help="Use MyOwnFactor factoring receivable balance external service",
)
Usage
=====

Expand All @@ -79,10 +106,10 @@ see account_factoring_receivable_balance_bpce module
Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/odoo-factoring/issues>`_.
Bugs are tracked on `GitHub Issues <https://github.com/Akretion/https://github.com/akretion/odoo-factoring/tree/16.0/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 <https://github.com/OCA/odoo-factoring/issues/new?body=module:%20account_factoring_receivable_balance%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/Akretion/https://github.com/akretion/odoo-factoring/tree/16.0/issues/new?body=module:%20account_factoring_receivable_balance%0Aversion:%2016.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.

Expand All @@ -92,7 +119,7 @@ Credits
Authors
~~~~~~~

*
* Akretion

Contributors
~~~~~~~~~~~~
Expand All @@ -101,31 +128,20 @@ Contributors
- David BEAL
- Alexis DE LATTRE


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-bealdav| image:: https://github.com/bealdav.png?size=40px
:target: https://github.com/bealdav
:alt: bealdav
.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px
:target: https://github.com/alexis-via
:alt: alexis-via

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

|maintainer-bealdav| |maintainer-alexis-via|

This module is part of the `OCA/odoo-factoring <https://github.com/OCA/odoo-factoring/tree/15.0/account_factoring_receivable_balance>`_ project on GitHub.
This module is part of the `Akretion/https://github.com/akretion/odoo-factoring/tree/16.0 <https://github.com/Akretion/https://github.com/akretion/odoo-factoring/tree/16.0/tree/16.0/account_factoring_receivable_balance>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
You are welcome to contribute.
3 changes: 3 additions & 0 deletions account_factoring_receivable_balance/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
Loading

0 comments on commit a0889c0

Please sign in to comment.