Skip to content

Commit 01e4ed0

Browse files
committed
[ADD] bacula2_contacts: добавил модификацию
1 parent 00d496f commit 01e4ed0

File tree

5 files changed

+42
-0
lines changed

5 files changed

+42
-0
lines changed

bacula2_contacts/README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
===========================================
2+
Contacts modifications for Bacula Systems
3+
===========================================
4+
5+
* In contact form, default type for subcontact is 'contact' instead of 'other' (Other address)

bacula2_contacts/__init__.py

Whitespace-only changes.

bacula2_contacts/__manifest__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": """Contacts modifications for Bacula Systems""",
3+
"version": "16.0.0.1.0",
4+
"author": "IT-Projects LLC, Eugene Molotov",
5+
"support": "it@it-projects.info",
6+
"website": "https://github.com/it-projects-llc/bacula-addons",
7+
"license": "LGPL-3",
8+
"depends": [
9+
"contacts",
10+
],
11+
"data": [
12+
"views/res_partner_views.xml",
13+
],
14+
"demo": [],
15+
}

bacula2_contacts/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<odoo>
3+
<record id="partner_view_form_replace_parts" model="ir.ui.view">
4+
<field name="name">res.partner.form.bacula.replace.parts</field>
5+
<field name="model">res.partner</field>
6+
<field name="inherit_id" ref="base.view_partner_form" />
7+
<field name="priority" eval="100" />
8+
<field name="arch" type="xml">
9+
<xpath
10+
expr="//notebook/page[@name='contact_addresses']/field[@name='child_ids']"
11+
position="attributes"
12+
>
13+
<attribute
14+
name="context"
15+
>{'default_parent_id': active_id, 'default_street': street, 'default_street2': street2, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_lang': lang, 'default_user_id': user_id, 'default_type': 'contact'}</attribute>
16+
</xpath>
17+
</field>
18+
</record>
19+
</odoo>

0 commit comments

Comments
 (0)