v1.0.117
Settings, Sequences: numbering of every document, like Odoo; Flow, “State change” trigger; Migrate from Odoo 16, 17 and 18
What's new in ERPSqlite 1.0.117
- New Settings → Configuration → Sequences menu (administrators only): a list with the numbering of every module of the active company (sales and purchase orders, invoices and credit notes, payments, entries of each journal, deliveries of each warehouse, POS, manufacturing, payslips, tickets, service orders, bookings, SIS, Tijera, Credits, Parcels…), with its app, code, prefix, suffix, padding, step, next number and how the next document will look. Search and group by app.
- Sequence form, like Odoo's: change the prefix, suffix, padding, step and next number, and see right away how the next document will look.
- Odoo placeholders in the prefix and suffix: %(year)s, %(y)s, %(month)s, %(day)s, %(doy)s, %(woy)s, %(weekday)s, %(h24)s, %(h12)s, %(min)s, %(sec)s and the range ones (%(range_year)s…), with a legend in the form. A mistyped placeholder cannot be saved.
- Use subsequences per date range: each range (one year when created) has its own counter, so numbering restarts at 1 every year. When turned on, the current year's range continues from the current number; ranges are added, changed or removed in the form and cannot overlap.
- Each company has its own numbering: changing one does not touch the others.
- Flow: new “State change” trigger. Choose the table (sales and purchase orders, invoices, payments, transfers, opportunities, tasks, tickets, manufacturing, POS, services, bookings, payslips, expenses… any with a state), the field (state, stage, payment status, invoicing status…) and optionally “From” and “To” with their values in a list; without them, on any change. Examples: send a WhatsApp when an order is confirmed, send a thank-you when an invoice is paid or create a task when an opportunity moves to “Won”.
- The flow gets the whole record with its contact ({{trigger.name}}, {{trigger.partner}}, {{trigger.partner_email}}…) and the change: {{trigger.old_state}} → {{trigger.new_state}} and their names {{trigger.old_label}} → {{trigger.new_label}} (for stages, the stage name, which also works in “From” and “To”).
- Each change runs the flow once; if the record goes back and forward again, it runs again. When the flow is turned on (or the table or field changes) what already happened does not count. “Run” tests it with the latest record that is in “To”.
- Migrate from Odoo: tested with a real Odoo 16. The Odoo company (it is the one here), internal users (Administrator, OdooBot), the public user and the user templates are no longer brought in as contacts; portal customers still are.
- Migrate from Odoo 17 and 18: self-assessed taxes (intra-community acquisitions, reverse charge) come in at 0% as with Odoo 16 and earlier, so invoice totals match.