mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[ADD] multi-company support on account.statement.profile
This commit is contained in:
@@ -76,13 +76,11 @@
|
||||
|
||||
""",
|
||||
'website': 'http://www.camptocamp.com',
|
||||
'init_xml': [],
|
||||
'update_xml': [
|
||||
'statement_view.xml',
|
||||
'data': ['statement_view.xml',
|
||||
'report/bank_statement_webkit_header.xml',
|
||||
'report.xml',
|
||||
'security/ir.model.access.csv',
|
||||
],
|
||||
'security/ir_rule.xml'],
|
||||
'demo_xml': [],
|
||||
'test': [],
|
||||
'installable': True,
|
||||
|
||||
@@ -76,6 +76,7 @@ class AccountStatementProfil(Model):
|
||||
'Bank Statement Prefix', size=32),
|
||||
'bank_statement_ids': fields.one2many(
|
||||
'account.bank.statement', 'profile_id', 'Bank Statement Imported'),
|
||||
'company_id': fields.many2one('res.company', 'Company'),
|
||||
}
|
||||
|
||||
def _check_partner(self, cr, uid, ids, context=None):
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
<separator string="" colspan="4"/>
|
||||
<field name="name" select="1" />
|
||||
<field name="partner_id" select="1"/>
|
||||
<field name="company_id" select="1" groups="base.group_multi_company"/>
|
||||
<field name="journal_id" select="1"/>
|
||||
<field name="commission_account_id" />
|
||||
<field name="commission_analytic_id" />
|
||||
@@ -31,6 +32,7 @@
|
||||
<tree string="Import statement">
|
||||
<field name="name" />
|
||||
<field name="partner_id" />
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
<field name="journal_id" />
|
||||
<field name="commission_account_id" />
|
||||
<field name="commission_analytic_id" />
|
||||
|
||||
Reference in New Issue
Block a user