Skip to content
Extraits de code Groupes Projets
Valider 8252b6e5 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[add] css style & beneficiary_id

parent b1345524
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -5,7 +5,7 @@
'license': 'AGPL-3',
'author': 'LE FILAMENT',
'category': 'Sales',
'depends': ['sale'],
'depends': ['account', 'sale'],
'contributors': [
'Benjamin Rivier <benjamin@le-filament.com>',
'Rémi Cazenave <remi@le-filament.com>',
......@@ -13,7 +13,9 @@
],
'website': 'https://le-filament.com',
'data': [
'views/lefilament_sales_view.xml',
'views/assets_pdf.xml',
'views/account_move_view.xml',
'views/sales_view.xml',
],
'qweb': [
],
......
# -*- coding: utf-8 -*-
from . import account_move
from . import sale
# © 2022 Le Filament (<http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models, fields, api
class AccountMove(models.Model):
_inherit = 'account.move'
beneficiary_id = fields.Many2one(
comodel_name='res.partner',
string='Bénéficiaire',
domain=[('is_company', '=', True)],
copy=True)
@api.onchange('partner_id')
def _onchange_beneficiary_id(self):
self.beneficiary_id = self.partner_id
......@@ -7,10 +7,7 @@ from odoo import api, fields, models
class SaleOrder(models.Model):
_name = "sale.order"
_inherit = ['sale.order']
_description = "Sales Order"
_order = 'date_order desc, id desc'
_inherit = 'sale.order'
untaxed_amount_to_invoice = fields.Monetary(
string='Remains to invoice (untaxed)',
......
.o_boxed_footer {font-size: 12px !important;}
.o_report_layout_boxed {
font-size: 13px !important;
}
address {font-size: 15px !important;}
.o_report_layout_boxed table {
border: none !important;
}
.o_report_layout_boxed table thead tr th {
border: none !important;
}
.o_report_layout_boxed table tbody tr td {
border-right: none !important;
border-bottom: 1px solid #eee;
padding-bottom: 15px;
}
.o_report_layout_boxed .row > div > table tr.o_subtotal td {
border-right: none !important;
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Copyright 2022 Le Filament
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<record model="ir.ui.view" id="view_move_form_filament">
<field name="inherit_id" ref="account.view_move_form"/>
<field name="name">account.move.form</field>
<field name="model">account.move</field>
<field name="arch" type="xml">
<xpath expr="//field[@name='payment_reference']" position="before">
<field name="beneficiary_id" attrs="{'invisible': [('move_type', 'not in', ('out_invoice', 'out_refund'))]}"/>
</xpath>
</field>
</record>
</odoo>
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Copyright 2022 Le Filament
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<data>
<template id="lefilament_report_assets_pdf" name="lefilament_report_assets_pdf" inherit_id="web.report_assets_pdf">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/lefilament_sales/static/src/css/report_style.css"/>
</xpath>
</template>
</data>
</odoo>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Copyright 2022 Le Filament
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<record id="lf_view_sale_order_calendar" model="ir.ui.view">
<field name="inherit_id" ref="sale.view_sale_order_calendar"/>
<field name="name">sale.order.calendar</field>
......
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