mirror of
https://gitlab.com/flectra-hq/flectra.git
synced 2025-02-25 18:55:21 -06:00
Master account chqr fix
This commit is contained in:
committed by
Parthiv Patel
parent
59a06c04ea
commit
8b718c13a5
@@ -13,7 +13,7 @@
|
||||
'maintainer': 'FlectraHQ',
|
||||
'license': 'LGPL-3',
|
||||
'depends': ['web_flectra','accounting_pdf_reports', 'account_asset',
|
||||
'account_budget', 'account_bank_statement_import'],
|
||||
'account_budget'],
|
||||
'demo': [],
|
||||
'data': [
|
||||
'security/ir.model.access.csv',
|
||||
|
||||
@@ -2,6 +2,4 @@
|
||||
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import models
|
||||
from . import account_bank_statement_import
|
||||
from . import account_journal
|
||||
from . import wizard
|
||||
|
||||
@@ -11,15 +11,15 @@
|
||||
'depends': ['account'],
|
||||
'data': [
|
||||
'security/ir.model.access.csv',
|
||||
'account_bank_statement_import_view.xml',
|
||||
'account_import_tip_data.xml',
|
||||
'wizard/journal_creation.xml',
|
||||
'data/account_import_tip_data.xml',
|
||||
'views/account_bank_statement_import_view.xml',
|
||||
'views/account_bank_statement_import_templates.xml',
|
||||
'views/account_journal_dashboard_inherit.xml',
|
||||
'views/account_journal_inherit.xml',
|
||||
'views/account_payment_inherit.xml',
|
||||
'views/account_bank_statement_view_inherit.xml',
|
||||
'views/assets.xml'
|
||||
'views/assets.xml',
|
||||
'wizard/journal_creation.xml',
|
||||
],
|
||||
'demo': [
|
||||
'demo/partner_bank.xml',
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import account_bank_statement_line
|
||||
from . import account_bank_statement_import
|
||||
from . import account_journal
|
||||
from . import res_company
|
||||
from . import account_bank_statement
|
||||
from . import account_journal_dashboard
|
||||
|
||||
@@ -20,7 +20,7 @@ class AccountMove(models.Model):
|
||||
('in_refund', 'Vendor Credit Note'),
|
||||
('out_receipt', 'Sales Receipt'),
|
||||
('in_receipt', 'Purchase Receipt'),
|
||||
], string='Entry Type', required=True, store=True, index=True, readonly=True, tracking=True,
|
||||
], string='Move Type', required=True, store=True, index=True, readonly=True, tracking=True,
|
||||
default="entry", change_default=True)
|
||||
invoice_payment_state = fields.Selection(selection=[
|
||||
('not_paid', 'Not Paid'),
|
||||
|
||||
4
addons/l10n_ch_flectra/README.rst
Normal file
4
addons/l10n_ch_flectra/README.rst
Normal file
@@ -0,0 +1,4 @@
|
||||
Swiss Flectra Improvements
|
||||
==========================
|
||||
|
||||
This app will improve and fix l10n_ch features.
|
||||
2
addons/l10n_ch_flectra/__init__.py
Normal file
2
addons/l10n_ch_flectra/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
# coding: utf-8
|
||||
from . import models
|
||||
32
addons/l10n_ch_flectra/__manifest__.py
Normal file
32
addons/l10n_ch_flectra/__manifest__.py
Normal file
@@ -0,0 +1,32 @@
|
||||
# coding: utf-8
|
||||
###########################################################################
|
||||
# Module Writen to Flectra, Open Source Management Solution
|
||||
############################################################################
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
{
|
||||
"name": "Swiss Flectra Improvements",
|
||||
"version": "2.0",
|
||||
"author": "Flectra Community",
|
||||
"category": "Accounting/Localizations",
|
||||
"website": "https://flectra-community.org",
|
||||
"license": "LGPL-3",
|
||||
"depends": ["l10n_ch"],
|
||||
"demo": [],
|
||||
"data": [],
|
||||
"installable": True,
|
||||
"auto_install": True,
|
||||
}
|
||||
2
addons/l10n_ch_flectra/models/__init__.py
Normal file
2
addons/l10n_ch_flectra/models/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
# coding: utf-8
|
||||
from . import res_bank
|
||||
18
addons/l10n_ch_flectra/models/res_bank.py
Normal file
18
addons/l10n_ch_flectra/models/res_bank.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from flectra import api, fields, models, _
|
||||
|
||||
|
||||
class ResPartnerBank(models.Model):
|
||||
_inherit = 'res.partner.bank'
|
||||
|
||||
def _eligible_for_qr_code(self, qr_method, debtor_partner, currency):
|
||||
if qr_method == 'ch_qr':
|
||||
|
||||
return self.acc_type == 'iban' and \
|
||||
self.partner_id.country_id.code in ('CH', 'LI') and \
|
||||
(not debtor_partner or debtor_partner.country_id.code in ('CH', 'LI')) \
|
||||
and currency.name in ('EUR', 'CHF')
|
||||
|
||||
return super()._eligible_for_qr_code(qr_method, debtor_partner, currency)
|
||||
@@ -416,6 +416,7 @@ class Project(models.Model):
|
||||
|
||||
class SprintPlanningLine(models.Model):
|
||||
_name = "sprint.planning.line"
|
||||
_description = "Sprint Planning Line"
|
||||
|
||||
@api.depends('available_per', 'sprint_id.project_id',
|
||||
'sprint_id.project_id.no_of_hours',
|
||||
@@ -464,6 +465,7 @@ class SprintPlanningLine(models.Model):
|
||||
|
||||
class UserRole(models.Model):
|
||||
_name = "user.role"
|
||||
_description = "User Role"
|
||||
|
||||
name = fields.Char(string="Role")
|
||||
code = fields.Char(string="Code")
|
||||
|
||||
@@ -139,6 +139,7 @@ class ProjectStory(models.Model):
|
||||
|
||||
class StoryPriority(models.Model):
|
||||
_name = "story.priority"
|
||||
_description = "Story Priority"
|
||||
_inherit = 'mail.thread'
|
||||
|
||||
name = fields.Char("Name", tracking=True)
|
||||
@@ -147,6 +148,7 @@ class StoryPriority(models.Model):
|
||||
|
||||
class StoryType(models.Model):
|
||||
_name = "story.type"
|
||||
_description = "Story Type"
|
||||
_inherit = 'mail.thread'
|
||||
|
||||
name = fields.Char("Name", tracking=True)
|
||||
|
||||
@@ -5,6 +5,7 @@ from flectra import models, fields
|
||||
|
||||
class ReleasePlanning(models.Model):
|
||||
_name = "release.planning"
|
||||
_description = "Release Planing"
|
||||
_inherit = 'mail.thread'
|
||||
|
||||
name = fields.Char(string="Planning Name", tracking=True)
|
||||
|
||||
@@ -5,6 +5,7 @@ from flectra import models, fields, api
|
||||
|
||||
class Retrospective(models.Model):
|
||||
_name = "retrospective"
|
||||
_description = "Retrospective"
|
||||
_inherit = 'mail.thread'
|
||||
|
||||
name = fields.Char(string="Retrospective Name", required=True,
|
||||
@@ -29,6 +30,7 @@ class Retrospective(models.Model):
|
||||
|
||||
class RetrospectiveLines(models.Model):
|
||||
_name = "retrospective.lines"
|
||||
_description = "Retrospective Lines"
|
||||
|
||||
user_id = fields.Many2one("res.users", string="User", readonly=True,
|
||||
required=True,
|
||||
|
||||
Reference in New Issue
Block a user