Browse Source

[REF] pos_journal_image: Black python code

pull/409/head
Sylvain LE GAL 5 years ago
parent
commit
7ab05a11ee
  1. 41
      pos_journal_image/__openerp__.py
  2. 4
      pos_journal_image/models/account_journal.py

41
pos_journal_image/__openerp__.py

@ -3,30 +3,21 @@
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': "Point of Sale - Journal Image",
'summary': "Add images on Account Journals available in the PoS",
'version': '8.0.1.0.0',
'category': 'Point of Sale',
'author': 'GRAP',
'website': 'http://www.grap.coop',
'license': 'AGPL-3',
'depends': [
'point_of_sale',
"name": "Point of Sale - Journal Image",
"summary": "Add images on Account Journals available in the PoS",
"version": "8.0.1.0.0",
"category": "Point of Sale",
"author": "GRAP",
"website": "http://www.grap.coop",
"license": "AGPL-3",
"depends": ["point_of_sale"],
"data": ["views/templates.xml", "views/view_account_journal.xml"],
"qweb": ["static/src/xml/pos_journal_image.xml"],
"demo": ["demo/account_journal.xml"],
"images": [
"static/description/account_journal_form.png",
"static/description/pos_payment_list_image.png",
"static/description/pos_paypad_image.png",
],
'data': [
'views/templates.xml',
'views/view_account_journal.xml',
],
'qweb': [
'static/src/xml/pos_journal_image.xml',
],
'demo': [
'demo/account_journal.xml',
],
'images': [
'static/description/account_journal_form.png',
'static/description/pos_payment_list_image.png',
'static/description/pos_paypad_image.png',
],
'installable': False,
"installable": False,
}

4
pos_journal_image/models/account_journal.py

@ -6,7 +6,7 @@ from openerp import fields, models
class AccountJournal(models.Model):
_inherit = 'account.journal'
_inherit = "account.journal"
# Columns section
pos_image = fields.Binary(string='PoS Image')
pos_image = fields.Binary(string="PoS Image")
Loading…
Cancel
Save