[IMP] account_sub_accounts : apply changes proposed by pre-commit
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m28s
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m28s
This commit is contained in:
@@ -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": {},
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
|
||||
@@ -1,16 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="account_move_line_tree_sub_accounts_view" model="ir.ui.view">
|
||||
<field name="name">Account Move Line sub-accounts tree view</field>
|
||||
<field name="model">account.move.line</field>
|
||||
<field name="inherit_id" ref="account.view_move_line_tree"/>
|
||||
<field name="inherit_id" ref="account.view_move_line_tree" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='analytic_distribution']" position="after">
|
||||
<field name="sub_account_customer" optional="hide"/>
|
||||
<field name="sub_account_supplier" optional="hide"/>
|
||||
<field name="sub_account_customer" optional="hide" />
|
||||
<field name="sub_account_supplier" optional="hide" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="res_partner_form_sub_accounts_view" model="ir.ui.view">
|
||||
<field name="name">Res Partner sub-accounts form view</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="account.view_partner_property_form"/>
|
||||
<field name="inherit_id" ref="account.view_partner_property_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page[@name='accounting']/group" position="inside">
|
||||
<group string="Sub-accounts" name="sub_accounts">
|
||||
@@ -14,5 +13,4 @@
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user