Skip to content

Commit

Permalink
add settlement module to v13
Browse files Browse the repository at this point in the history
  • Loading branch information
odoo-mvds committed Jun 26, 2020
1 parent 042aad7 commit d87e61c
Show file tree
Hide file tree
Showing 19 changed files with 920 additions and 3 deletions.
43 changes: 40 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
.idea/*
.idea/
*.pyc
# sphinx build directories
_build/

# dotfiles
.*
!.gitignore
!.mailmap
# compiled python files
*.py[co]
__pycache__/
# setup.py egg_info
*.egg-info
# emacs backup files
*~
# hg stuff
*.orig
status
# odoo filestore
odoo/filestore
# maintenance migration scripts
odoo/addons/base/maintenance

# generated for windows installer?
install/win32/*.bat
install/win32/meta.py

# needed only when building for win32
setup/win32/static/less/
setup/win32/static/wkhtmltopdf/
setup/win32/static/postgresql*.exe

# various virtualenv
/bin/
/build/
/dist/
/include/
/lib/
/man/
/share/
/src/
5 changes: 5 additions & 0 deletions mollie_account_sync/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-

from . import models
from . import controllers
from . import wizard
22 changes: 22 additions & 0 deletions mollie_account_sync/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-

{
'name': 'Mollie Settlement Sync',
'version': '13.0.1.0',
'description': '',
'summary': 'This module settlements from mollie',
'author': 'Mollie',
'maintainer': 'Applix',
'license': 'LGPL-3',
'category': '',
'depends': [
'account_accountant'
],
'data': [
'views/account_journal.xml',
'views/bank_statement.xml',
'views/templates.xml',
'wizard/mollie_init_views.xml'
],
"qweb": ['static/src/xml/*.xml'],
}
3 changes: 3 additions & 0 deletions mollie_account_sync/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-

from . import main
12 changes: 12 additions & 0 deletions mollie_account_sync/controllers/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
import json
from odoo import http, tools
from odoo.http import request


class MollieData(http.Controller):

@http.route('/get_mollie_order_info', type='json', auth='user')
def get_order_info(self, order_id, journal_id):
AccountJournal = request.env["account.journal"]
return AccountJournal.browse(journal_id)._api_call_get_order_meta(order_id)
3 changes: 3 additions & 0 deletions mollie_account_sync/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-

from . import account_journal
Loading

0 comments on commit d87e61c

Please sign in to comment.