Saturday, March 19, 2022

Odoo 14 sequence not working when create model (TypeError: not enough arguments for format string)

I have tried to follow tutorial odoo14, and it explain about sequence, I have followed the tutorial but sequence not working with error : TypeError: not enough arguments for format string.

After checking i realize that the mistake was in the prefix format in xml file.
it should be something like this : TC/%(year)s/%(month)s/ but i made it like this : TC/%(year)s/%(month)s%/

So i fix the xml file and restart the odoo server, but it still got the same problem, even i tried to search it from google, i still cannot find the error :(, until i check into the databases it self through setting-technical-sequence I can see that there were two same sequence but the first was the error one, so after i deleted it, everything run smoothly :).

1 comment:

  1. PE plastics are limited by poor UV resistance and can't stand up to high service temperatures. HDPE components are troublesome to mildew with thicknesses of less than .020-in. With injection molded LDPE, close tolerances are hard to realize. PET absorbs important water and requires resin drying, which provides to manufacturing costs. The plastic injection molding process is a producing methodology for producing plastic components. An injection moulding best straw lifeguard hat machine consists of a feed, a backflow valve, an injection nozzle, and injector unit and a double cylinder.