# Strange behavior proteus vs web client

**URL:** https://discuss.tryton.org/t/strange-behavior-proteus-vs-web-client/8295
**Category:** Developer
**Created:** [February 10, 2025, 11:44am UTC](https://discuss.tryton.org/t/strange-behavior-proteus-vs-web-client/8295 "2025-02-10T11:44:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![herve\_02](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/7ea924/32.png) [@herve\_02](https://discuss.tryton.org/u/herve_02)
#### Post date: [February 10, 2025, 11:44am UTC](https://discuss.tryton.org/t/strange-behavior-proteus-vs-web-client/8295/1 "2025-02-10T11:44:42Z")

</div>

web client  
1 create a sale just save, it no validation at all.

AND

- web client  
..Quote and confirm the sale  
…go to invoice  
Post invoice =\> ok

- proteus  
Sale= Model.get(‘sale.sale’)  
sale=Sale(num\_sale)  
sale.click(‘quote’)  
sale.click(‘confirm’)  
sale.invoices[0].click(‘post’) (or for inv in sale.invoices … inv.click(‘post’)

#### trytond.modules.account\_invoice.exceptions.InvoiceNumberError:

#### To number the invoice “(52)”, you must set an accounting date after “01/12/2025” because the sequence “Clients\_25” has already been used for invoice “31234”

clients\_25 is the sequence for customer invoice.

If i go back to web client i have the same error for that invoice…

---

<div class="post-metadata">

### Author: ![herve\_02](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/7ea924/32.png) [@herve\_02](https://discuss.tryton.org/u/herve_02)
#### Post date: [February 10, 2025, 1:07pm UTC](https://discuss.tryton.org/t/strange-behavior-proteus-vs-web-client/8295/2 "2025-02-10T13:07:31Z")

</div>

it seems to work , i am narrowing down…

---

<div class="post-metadata">

### Author: ![herve\_02](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/7ea924/32.png) [@herve\_02](https://discuss.tryton.org/u/herve_02)
#### Post date: [February 10, 2025, 2:34pm UTC](https://discuss.tryton.org/t/strange-behavior-proteus-vs-web-client/8295/3 "2025-02-10T14:34:45Z")

</div>

so i narrow down - maybe a mis configuration i’ll open a new subject.

i finally found…  
play with proteus i gave a date french format that was inserted french format (so in the future for the tryton databases ???) and the code

says

```auto
after_invoices = cls.search([
('sequence', '=', invoice.sequence),
    ['OR',
     ('accounting_date', '>', date),
        [
           ('accounting_date', '=', None),
        ('invoice_date', '>', date),
            ],
               ],
               ], limit=1, order=[('accounting_date', 'DESC')])

```

so it is not possible to enter an invoice with a date BEFORE one invoice entered. the error message was not helping at all

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [February 20, 2025, 12:40pm UTC](https://discuss.tryton.org/t/strange-behavior-proteus-vs-web-client/8295/4 "2025-02-20T12:40:31Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
