3cfe548ee03f96713c7a6d462409be9c825d22e7
Found error during migration in customer database. when company is archived but will get that company on `self.env.company` of pos_config table, this error is generated when it's try to create the record for pos config from pos_resturant module by data file (defined on this commit) https://github.com/odoo/odoo/commit/3236c1cb5025d2c2d446d11f67fda1ea51ceb992 as picking_type_id field in pos_config is required and we set default value by fetching warehouse for related company but here as company is archived, related warehouse is also archived and that why we didnot get picking_type_id for archived company and that will raise Error : ``` File "/home/odoo/src/odoo/17.0/odoo/models.py", line 4787, in _create cr.execute(SQL( File "/home/odoo/src/odoo/17.0/odoo/sql_db.py", line 332, in execute res = self._obj.execute(query, params) psycopg2.errors.NotNullViolation: null value in column "picking_type_id" of relation "pos_config" violates not-null constraint ``` closes odoo/odoo#162590 X-original-commit: 34b9bf83eeba55c1e05a916064dafcc7a9d7356e Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com> Signed-off-by: Atul Patel (atp) <atp@odoo.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%