7 changed files with 288 additions and 0 deletions
-
75partner_contact_company_first/README.rst
-
3partner_contact_company_first/__init__.py
-
21partner_contact_company_first/__manifest__.py
-
BINpartner_contact_company_first/static/description/icon.png
-
79partner_contact_company_first/static/description/icon.svg
-
82partner_contact_company_first/static/description/index.html
-
28partner_contact_company_first/views/base_contact_view.xml
@ -0,0 +1,75 @@ |
|||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg |
|||
:target: https://www.gnu.org/licenses/agpl |
|||
:alt: License: AGPL-3 |
|||
|
|||
============================= |
|||
partner_contact_company_first |
|||
============================= |
|||
|
|||
This module prints in qweb report addresses the company in the first line and |
|||
the name of the contact person in the next line instead of name, company |
|||
|
|||
Installation |
|||
============ |
|||
|
|||
Just install, no activation needed |
|||
|
|||
Configuration |
|||
============= |
|||
|
|||
No configuration |
|||
|
|||
Usage |
|||
===== |
|||
|
|||
Print a report with the address and see the difference. |
|||
|
|||
Known issues / Roadmap |
|||
====================== |
|||
|
|||
* No known issues |
|||
|
|||
Bug Tracker |
|||
=========== |
|||
|
|||
Bugs are tracked on `GitHub Issues |
|||
<https://github.com/OCA/partner-contact/issues>`_. In case of trouble, please |
|||
check there if your issue has already been reported. If you spotted it first, |
|||
help us smash it by providing detailed and welcomed feedback. |
|||
|
|||
Credits |
|||
======= |
|||
|
|||
Images |
|||
------ |
|||
|
|||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_. |
|||
|
|||
Contributors |
|||
------------ |
|||
|
|||
* Andreas Stauder <andreas.stauder@braintec-group.com> (brain-tec AG) |
|||
|
|||
Do not contact contributors directly about support or help with technical issues. |
|||
|
|||
Funders |
|||
------- |
|||
|
|||
The development of this module has been financially supported by: |
|||
|
|||
* brain-tec AG |
|||
|
|||
Maintainer |
|||
---------- |
|||
|
|||
.. image:: https://odoo-community.org/logo.png |
|||
:alt: Odoo Community Association |
|||
:target: https://odoo-community.org |
|||
|
|||
This module is maintained by the OCA. |
|||
|
|||
OCA, or the Odoo Community Association, is a nonprofit organization whose |
|||
mission is to support the collaborative development of Odoo features and |
|||
promote its widespread use. |
|||
|
|||
To contribute to this module, please visit https://odoo-community.org. |
@ -0,0 +1,3 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). |
|||
|
@ -0,0 +1,21 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Copyright 2017 Andreas Stauder (brain-tec AG) |
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). |
|||
{ |
|||
"name": "Contact Company first", |
|||
"summary": "Prints address with company in firstname and contact person " |
|||
"in the second line instead of Name, Company", |
|||
"version": "8.0.1.0.0", |
|||
"category": "Uncategorized", |
|||
"website": "https://github.com/OCA/partner-contact", |
|||
"author": "brain-tec AG, Odoo Community Association (OCA)", |
|||
"license": "AGPL-3", |
|||
"application": False, |
|||
"installable": True, |
|||
"depends": [ |
|||
"base", |
|||
], |
|||
"data": [ |
|||
"views/base_contact_view.xml", |
|||
], |
|||
} |
After Width: 128 | Height: 128 | Size: 9.2 KiB |
79
partner_contact_company_first/static/description/icon.svg
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,82 @@ |
|||
<section class="oe_container"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div class="oe_span12"> |
|||
<h2 class="oe_slogan">Contact company first</h2> |
|||
<p>This module prints in qweb report address the company in the |
|||
first line and the name of the contact person in the next line |
|||
instead of name, company</p> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container oe_dark"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div class="oe_span12"> |
|||
<h2 class="oe_slogan">Installation</h2> |
|||
</div> |
|||
<div class="oe_span6"> |
|||
<p class="oe_mt32">Just install, no activation needed</p> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div class="oe_span12"> |
|||
<h2 class="oe_slogan">Configuration</h2> |
|||
</div> |
|||
<div class="oe_span6"> |
|||
<p class="oe_mt32">No configuration</p> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container oe_dark"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div class="oe_span12"> |
|||
<h2 class="oe_slogan">Usage</h2> |
|||
</div> |
|||
<div class="oe_span6"> |
|||
<p class="oe_mt32">Print a report with the address and see the difference.</p> |
|||
<p class="oe_mt32">For further information, please visit: |
|||
<ul> |
|||
<li><a href="https://www.odoo.com/forum/help-1">https://www.odoo.com/forum/help-1</a></li> |
|||
</ul> |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container"> |
|||
<div class="oe_row oe_spaced"> |
|||
<div class="oe_span12"> |
|||
<h2 class="oe_slogan">Known issues / Roadmap</h2> |
|||
</div> |
|||
<div class="oe_span6"> |
|||
<p class="oe_mt32">None</p> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
|
|||
<section class="oe_container oe_dark"> |
|||
<div class="oe_row"> |
|||
<div class="oe_span12"> |
|||
<h2 class="oe_slogan">Credits</h2> |
|||
</div> |
|||
<div class="oe_span12"> |
|||
<h3>Contributors</h3> |
|||
<ul> |
|||
<li>Andreas Stauder <<a href="mailto:andreas.stauder@braintec-group.com">andreas.stauder@braintec-group.com</a>></li> |
|||
</ul> |
|||
</div> |
|||
<div class="oe_span12"> |
|||
<h3>Maintainer</h3> |
|||
<p> |
|||
This module is maintained by the OCA.<br/> |
|||
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.<br/> |
|||
To contribute to this module, please visit <a href="http://odoo-community.org">http://odoo-community.org</a>.<br/> |
|||
<a href="http://odoo-community.org"><img class="oe_picture oe_centered" src="http://odoo-community.org/logo.png"></a> |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</section> |
@ -0,0 +1,28 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- Copyright 2017 Andreas Stauder (brain-tec AG) |
|||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> |
|||
|
|||
<openerp> |
|||
<data> |
|||
|
|||
<record id="partner_contact_company_first" model="ir.ui.view"> |
|||
<field name="name">Company in first line</field> |
|||
<field name="inherit_id" ref="base.contact"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//t[@t-if='object.name']" position="replace"> |
|||
<t t-if="object.parent_id"> |
|||
<t t-if="object.parent_name"> |
|||
<span itemprop="name" t-esc="object.parent_name"/> |
|||
</t> |
|||
<br/> |
|||
</t> |
|||
|
|||
<t t-if="object.name"> |
|||
<span itemprop="name" t-esc="object.name"/> |
|||
</t> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
|
|||
</data> |
|||
</openerp> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue