Browse Source

beesdoo_base module : migration to version 11.0

pull/105/head
Elouan 5 years ago
parent
commit
bcb8d12b69
  1. 7
      beesdoo_base/__init__.py
  2. 1
      beesdoo_base/__manifest__.py
  3. 2
      beesdoo_base/controllers/__init__.py
  4. 5
      beesdoo_base/controllers/report.py
  5. 2
      beesdoo_base/models/__init__.py
  6. 1
      beesdoo_base/models/membercard.py
  7. 1
      beesdoo_base/models/partner.py
  8. 2
      beesdoo_base/report/beescard.xml
  9. 2
      beesdoo_base/wizard/__init__.py
  10. 1
      beesdoo_base/wizard/member_card.py
  11. 1
      beesdoo_base/wizard/partner.py

7
beesdoo_base/__init__.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import models
import wizard
import controllers
from . import models
from . import wizard
from . import controllers

1
beesdoo_base/__manifest__.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
{
'name': "Beescoop Base Module",

2
beesdoo_base/controllers/__init__.py

@ -1 +1 @@
import report
from . import report

5
beesdoo_base/controllers/report.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.addons.web.http import Controller, route, request
@ -42,7 +41,7 @@ class ReportCustom(ReportController):
response = self.report_routes(reportname, docids=docids, converter='pdf')
else:
# Particular report:
data = url_decode(url.split('?')[1]).items() # decoding the args represented in JSON
data = list(url_decode(url.split('?')[1]).items()) # decoding the args represented in JSON
response = self.report_routes(reportname, converter='pdf', **dict(data))
cr, uid = request.cr, request.uid
@ -63,7 +62,7 @@ class ReportCustom(ReportController):
return response
else:
return
except Exception, e:
except Exception as e:
se = _serialize_exception(e)
error = {
'code': 200,

2
beesdoo_base/models/__init__.py

@ -1 +1 @@
import partner, membercard
from . import partner, membercard

1
beesdoo_base/models/membercard.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from odoo import models, fields, api
import uuid

1
beesdoo_base/models/partner.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from odoo import models, fields, api, _
from odoo.exceptions import ValidationError

2
beesdoo_base/report/beescard.xml

@ -29,7 +29,7 @@
</head>
<!-- X1.133 -->
<t t-call="report.html_container">
<t t-call="web.html_container">
<div class="page">

2
beesdoo_base/wizard/__init__.py

@ -1,2 +1,2 @@
import member_card, partner, portal_wizard
from . import member_card, partner, portal_wizard

1
beesdoo_base/wizard/member_card.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from odoo import models, fields, api
class NewMemberCardWizard(models.TransientModel):

1
beesdoo_base/wizard/partner.py

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from odoo import models, fields, api
class NewEaterWizard(models.TransientModel):

Loading…
Cancel
Save