Skip to content

Commit

Permalink
Merge 2f08ebb into 5036609
Browse files Browse the repository at this point in the history
  • Loading branch information
osi-scampbell committed Jul 24, 2019
2 parents 5036609 + 2f08ebb commit 6508d10
Show file tree
Hide file tree
Showing 13 changed files with 95 additions and 0 deletions.
21 changes: 21 additions & 0 deletions account_brand/README.rst
@@ -0,0 +1,21 @@
**This file is going to be generated by oca-gen-addon-readme.**

*Manual changes will be overwritten.*

Please provide content in the ``readme`` directory:

* **DESCRIPTION.rst** (required)
* INSTALL.rst (optional)
* CONFIGURE.rst (optional)
* **USAGE.rst** (optional, highly recommended)
* DEVELOP.rst (optional)
* ROADMAP.rst (optional)
* HISTORY.rst (optional, recommended)
* **CONTRIBUTORS.rst** (optional, highly recommended)
* CREDITS.rst (optional)

Content of this README will also be drawn from the addon manifest,
from keys such as name, authors, maintainers, development_status,
and license.

A good, one sentence summary in the manifest is also highly recommended.
4 changes: 4 additions & 0 deletions account_brand/__init__.py
@@ -0,0 +1,4 @@
# Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
22 changes: 22 additions & 0 deletions account_brand/__manifest__.py
@@ -0,0 +1,22 @@
# Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Account Brand",
"summary": "Send branded invoices and refunds",
"version": "12.0.1.0.0",
"category": "Accounting Management",
"website": "https://github.com/OCA/account-invoicing",
"author": "Open Source Integrators, Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": [
'account',
'partner_brand',
],
"data": [
"views/account_invoice.xml",
],
"installable": True,
"development_status": "Beta",
"maintainers": ["osi-scampbell"],
}
4 changes: 4 additions & 0 deletions account_brand/models/__init__.py
@@ -0,0 +1,4 @@
# Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import account_invoice
11 changes: 11 additions & 0 deletions account_brand/models/account_invoice.py
@@ -0,0 +1,11 @@
# Copyright (C) 2019 Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class AccountInvoice(models.Model):
_inherit = 'account.invoice'

brand_id = fields.Many2one('res.partner', string='Brand',
domain="[('type', '=', 'brand')]")
2 changes: 2 additions & 0 deletions account_brand/readme/CONFIGURE.rst
@@ -0,0 +1,2 @@
To configure this module, please refer to the documentation of
`partner_brand <https://github.com/OCA/partner-contact/blob/12.0/partner_brand/README.rst>`_.
3 changes: 3 additions & 0 deletions account_brand/readme/CONTRIBUTORS.rst
@@ -0,0 +1,3 @@
* Raphael Lee <rlee@opensourceintegrators.com>
* Steve Campbell <scampbell@opensourceintegrators.com>
* Maxime Chambreuil <mchambreuil@opensourceintegrators.com>
1 change: 1 addition & 0 deletions account_brand/readme/CREDITS.rst
@@ -0,0 +1 @@
* Open Source Integrators <https://www.opensourceintegrators.com>
3 changes: 3 additions & 0 deletions account_brand/readme/DESCRIPTION.rst
@@ -0,0 +1,3 @@
This module allows you to send branded invoices to your customers.
It adds a brand field on the invoice and the brand information to the PDF
report.
6 changes: 6 additions & 0 deletions account_brand/readme/USAGE.rst
@@ -0,0 +1,6 @@
To use this module, you need to:

#. Go to Accounting > Customers > Invoices
#. Select or create an invoice
#. Enter the information and select the brand
#. Print the PDF report. It includes the information of the brand.
Binary file added account_brand/static/description/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions account_brand/views/account_invoice.xml
@@ -0,0 +1,17 @@
<odoo>

<!-- Copyright (C) 2019 Open Source Integrators
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->

<record id="account_invoice_view_form_brand" model="ir.ui.view">
<field name="name">account.invoice.form.brand</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<field name="partner_id" position="after">
<field name="brand_id"/>
</field>
</field>
</record>

</odoo>
1 change: 1 addition & 0 deletions oca_dependencies.txt
@@ -1 +1,2 @@
partner-contact
purchase-workflow

0 comments on commit 6508d10

Please sign in to comment.