Skip to content
Snippets Groups Projects
Commit 6ba031c8 authored by Juliana's avatar Juliana
Browse files

[ADD] Ajout second vendeur

parent 16bffc80
No related branches found
No related tags found
No related merge requests found
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
# Copyright 2021 Le Filament (<http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models
......@@ -12,5 +12,6 @@
"data": [
"views/account_bank_statement.xml",
"views/account_move_line.xml",
"views/account_views.xml",
]
}
# Copyright 2021 Le Filament (<http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import account
# Copyright 2021 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, api
class AccountInvoice(models.Model):
_inherit = "account.invoice"
# ------------------------------------------------------
# Fields declaration
# ------------------------------------------------------
user_second_id = fields.Many2one(
'res.users',
string='Vendeur Bis',
track_visibility='onchange',
default=lambda self: self.env.user, copy=False)
# ------------------------------------------------------
# SQL Constraints
# ------------------------------------------------------
# ------------------------------------------------------
# Default methods
# ------------------------------------------------------
# ------------------------------------------------------
# Computed fields / Search Fields
# ------------------------------------------------------
# ------------------------------------------------------
# Onchange / Constraints
# ------------------------------------------------------
# ------------------------------------------------------
# CRUD methods (ORM overrides)
# ------------------------------------------------------
# ------------------------------------------------------
# Actions
# ------------------------------------------------------
# ------------------------------------------------------
# Business methods
# ------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="invoice_form" model="ir.ui.view">
<field name="name">account.3a.invoice.form</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<field name="user_id" position="after">
<field name="user_second_id"/>
</field>
</field>
</record>
</data>
</odoo>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment