Skip to content
Extraits de code Groupes Projets
Valider b84a7214 rédigé par Benjamin's avatar Benjamin
Parcourir les fichiers

initialisation

parent
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
.*
*.pyc
!.gitignore
\ No newline at end of file
Ce diff est replié.
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl
:alt: License: AGPL-3
============================
Finacoop - Template Factures
============================
*Modifie le template Odoo pour Finacoop
*Ajoute les CGV dans res_company
Credits
=======
Contributors ------------
* Juliana Poudou <juliana@le-filament.com>
* Benjamin Rivier <benjami@le-filament.com>
Maintainer ----------
.. image:: https://le-filament.com/images/logo-lefilament.png
:alt: Le Filament
:target: https://le-filament.com
This module is maintained by Le Filament
# -*- coding: utf-8 -*-
# © 2019 Le Filament (<http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models
\ No newline at end of file
# -*- coding: utf-8 -*-
# © 2017 Le Filament (<http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Finacoop - Template Factures',
'version': '10.0.1.0',
'description': """
Template des factures Finacoop
""",
'author': 'LE FILAMENT',
'license': 'AGPL-3',
'category': 'Finacoop',
'depends': ['account',],
'contributors': [
'Benjamin Rivier <benjami@le-filament.com>',
'Juliana Poudou <juliana@le-filament.com>',
],
'website': 'http://www.le-filament.com',
'data': [
'views/report_invoice.xml',
'views/res_company_views.xml',
],
'qweb': [
'static/src/xml/*.xml',
],
}
# -*- coding: utf-8 -*-
# © 2018 Le Filament (<http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import res_company
Fichier ajouté
# -*- coding: utf-8 -*-
# © 2019 Le Filament (http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ResCompanyInvoice(models.Model):
_inherit = "res.company"
cgv = fields.Html('CGV')
Fichier ajouté
static/description/icon.png

11,4 ko

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!-- Facture -->
<template id="report_invoive_finacoop" inherit_id="sale.report_invoice_document_inherit_sale">
<!-- TVA - affiche % et de supprime le 0 après la virgule -->
<xpath expr="//tbody/tr/td[6]" position="replace">
<td class="text-right">
<span t-esc="', '.join(map(lambda x: str(int(x.amount)), l.invoice_line_tax_ids))"/> %
</td>
</xpath>
<!-- Aficher € pour prix unitaire -->
<xpath expr="//span[@t-field='l.price_unit']" position="attributes">
<attribute name="t-options">{"widget": "monetary", "display_currency": o.currency_id}</attribute>
</xpath>
<!-- Total > Total TTC + (Font vert finacoop, Police Noir) -->
<xpath expr="//tr[@class='border-black'][2]" position="replace">
<tr class="border-black" style="background-color: #b2cd39;">
<td><strong>Total TTC</strong></td>
<td class="text-right">
<span t-field="o.amount_total" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
</td>
</tr>
</xpath>
<xpath expr="//div[@class='page']" position="inside">
<div style="font-size: 11px; margin-top: 40px;">
<p t-field="o.company_id.cgv"></p>
</div>
</xpath>
</template>
<!-- Supprime la partie Bank Account du module account_payment_partner -->
<template id="report_invoice_payment_mode_finacoop" inherit_id="account_payment_partner.report_invoice_payment_mode">
<xpath expr="//p[@t-if='o.partner_bank_id']" position="replace">
</xpath>
</template>
</data>
</odoo>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="res_company_view_form_inhrited" model="ir.ui.view">
<field name="name">res.company.view.form</field>
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='website']" position="after">
<field name="cgv"/>
</xpath>
</field>
</record>
</data>
</odoo>
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter