diff --git a/account_sub_accounts/__init__.py b/account_sub_accounts/__init__.py index 9a7e03e..0650744 100644 --- a/account_sub_accounts/__init__.py +++ b/account_sub_accounts/__init__.py @@ -1 +1 @@ -from . import models \ No newline at end of file +from . import models diff --git a/account_sub_accounts/__manifest__.py b/account_sub_accounts/__manifest__.py index 932c28c..52ae62c 100644 --- a/account_sub_accounts/__manifest__.py +++ b/account_sub_accounts/__manifest__.py @@ -1,21 +1,22 @@ { - 'name': 'Account Sub-accounts', - 'version': '18.0.1.0.0', - 'summary': 'Add sub-account fields in res.partners and account.move.line, and sync them.', - 'author': 'Elabore', - 'website': 'https://elabore.coop/', - 'license': 'AGPL-3', - 'category': 'Accounting', - 'depends': [ - 'account', - 'base', + "name": "Account Sub-accounts", + "version": "18.0.1.0.0", + "summary": "Add sub-account fields in res.partners and account.move.line, " + "and sync them.", + "author": "Elabore", + "website": "https://git.elabore.coop/elabore/account-tools", + "license": "AGPL-3", + "category": "Accounting", + "depends": [ + "account", + "base", ], - 'data': [ - 'views/res_partner_views.xml', - 'views/account_move_line_views.xml', + "data": [ + "views/res_partner_views.xml", + "views/account_move_line_views.xml", ], - 'installable': True, - 'auto_install': False, - 'application': False, - 'assets': {}, + "installable": True, + "auto_install": False, + "application": False, + "assets": {}, } diff --git a/account_sub_accounts/models/account_move_line.py b/account_sub_accounts/models/account_move_line.py index 3a17f7b..a3657b7 100644 --- a/account_sub_accounts/models/account_move_line.py +++ b/account_sub_accounts/models/account_move_line.py @@ -5,11 +5,9 @@ class AccountMoveLine(models.Model): _inherit = "account.move.line" sub_account_customer = fields.Char( - string="Custommer sub-account", - related="partner_id.sub_account_customer" + string="Custommer sub-account", related="partner_id.sub_account_customer" ) sub_account_supplier = fields.Char( - string="Supplier sub-account", - related="partner_id.sub_account_supplier" + string="Supplier sub-account", related="partner_id.sub_account_supplier" ) diff --git a/account_sub_accounts/views/account_move_line_views.xml b/account_sub_accounts/views/account_move_line_views.xml index a5ca318..8735344 100644 --- a/account_sub_accounts/views/account_move_line_views.xml +++ b/account_sub_accounts/views/account_move_line_views.xml @@ -1,16 +1,14 @@ - + - - - Account Move Line sub-accounts tree view - account.move.line - - - - - - - - - + + Account Move Line sub-accounts tree view + account.move.line + + + + + + + + diff --git a/account_sub_accounts/views/res_partner_views.xml b/account_sub_accounts/views/res_partner_views.xml index 739512a..a36ecb7 100644 --- a/account_sub_accounts/views/res_partner_views.xml +++ b/account_sub_accounts/views/res_partner_views.xml @@ -1,18 +1,16 @@ - + - - - Res Partner sub-accounts form view - res.partner - - - - - - - - - - - + + Res Partner sub-accounts form view + res.partner + + + + + + + + + +