Skip to content

Commit

Permalink
[11] migrating split payment
Browse files Browse the repository at this point in the history
  • Loading branch information
jackjack82 committed Jul 6, 2018
1 parent 3278d3e commit 1f41484
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 23 deletions.
1 change: 1 addition & 0 deletions l10n_it_split_payment/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Contributors
* Davide Corio <[email protected]>
* Lorenzo Battistini <[email protected]>
* Alessio Gerace <[email protected]>
* Giacomo Grasso <[email protected]>

Maintainer
----------
Expand Down
1 change: 0 additions & 1 deletion l10n_it_split_payment/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Davide Corio <[email protected]>
# Copyright 2015 Lorenzo Battistini - Agile Business Group
# Copyright 2016 Alessio Gerace - Agile Business Group
Expand Down
9 changes: 5 additions & 4 deletions l10n_it_split_payment/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Davide Corio <[email protected]>
# Copyright 2015-2016 Lorenzo Battistini - Agile Business Group
# Copyright 2016 Alessio Gerace - Agile Business Group
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
'name': 'Split Payment',
'version': '10.0.1.0.0',
'version': '11.0.1.0.0',
'category': 'Localization/Italy',
'summary': 'Split Payment',
'author': 'Abstract, Agile Business Group, '
'Odoo Community Association (OCA)',
'website': 'http://www.abstract.it',
'website': 'https://github.com/OCA/l10n-italy',
'license': 'AGPL-3',
'depends': ['account'],
'depends': [
'account',
'account_invoicing'],
'data': [
'views/account_view.xml',
'views/config_view.xml',
Expand Down
1 change: 0 additions & 1 deletion l10n_it_split_payment/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Davide Corio <[email protected]>
# Copyright 2015 Lorenzo Battistini - Agile Business Group
# Copyright 2016 Alessio Gerace - Agile Business Group
Expand Down
1 change: 0 additions & 1 deletion l10n_it_split_payment/models/account.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Davide Corio <[email protected]>
# Copyright 2015-2016 Lorenzo Battistini - Agile Business Group
# Copyright 2016 Alessio Gerace - Agile Business Group
Expand Down
3 changes: 1 addition & 2 deletions l10n_it_split_payment/models/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Davide Corio <[email protected]>
# Copyright 2015 Lorenzo Battistini - Agile Business Group
# Copyright 2016 Alessio Gerace - Agile Business Group
Expand All @@ -16,7 +15,7 @@ class ResCompany(models.Model):


class AccountConfigSettings(models.TransientModel):
_inherit = 'account.config.settings'
_inherit = 'res.config.settings'

sp_account_id = fields.Many2one(
related='company_id.sp_account_id',
Expand Down
1 change: 0 additions & 1 deletion l10n_it_split_payment/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Davide Corio <[email protected]>
# Copyright 2015 Lorenzo Battistini - Agile Business Group
# Copyright 2016 Alessio Gerace - Agile Business Group
Expand Down
1 change: 0 additions & 1 deletion l10n_it_split_payment/tests/test_splitpayment.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Davide Corio <[email protected]>
# Copyright 2015-2016 Lorenzo Battistini - Agile Business Group
# Copyright 2016 Alessio Gerace - Agile Business Group
Expand Down
34 changes: 22 additions & 12 deletions l10n_it_split_payment/views/config_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,31 @@

<record id="view_account_config_settings" model="ir.ui.view">
<field name="name">view_account_config_settings</field>
<field name="model">account.config.settings</field>
<field name="inherit_id" ref="account.view_account_config_settings"/>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="/form/group[6]" position="after">
<separator string="Split Payment"/>
<group name="Split Payment">
<label for="id" string="Configuration"/>
<div>
<div>
<label for="sp_account_id"/>
<field name="sp_account_id" class="oe_inline"/>
<div id="eu_service" position="after">
<div class="col-xs-12 col-md-6 o_setting_box"
title="Configuration for Split Payment module">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane">
<label for="sp_account_id"/>
<span class="fa fa-lg fa-building-o"
title="Configuration for Split Payment module."
groups="base.group_multi_company"/>
<div class="text-muted">
Configuration for Split Payment module.
</div>
<div class="content-group">
<div class="row mt16">
<label string="Account" for="sp_account_id" class="col-md-3 o_light_label"/>
<field name="sp_account_id"/>
</div>
</div>
</div>
</group>
</xpath>
</div>
</div>

</field>
</record>

Expand Down

0 comments on commit 1f41484

Please sign in to comment.