-
-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[10.0]No more foreign keys in all tables when using this repoo #200
Comments
Hi,
Same result, all the FK disappearing from tables, Does anyone reproduce this ? |
Which module from OCA/pos? Check in runbot if it happens the same. |
I'm trying each module one by one to identify |
Well it looks like that pos_remove_category caused the problem. I'll recheck |
Well, I confirm that having the module pos_remove_category cause the problem. I made those tests :
i'm suspecting the ir.module.module dependency so that I tried to comment the init part. There's something I can't log/ identify more without your support. Thanks in advance. |
@pedrobaeza it's not really easy for me to try on runbot because no error make the creation failed. Sadly there also nothing special in the logs. The db is created but the table structure haven't got anymore FK. I discovered that when a product.template has been deleted and its associated product.product still living its own .... |
Thanks @flotho for reporting this problem. This line seems to create your bug. (not tested) Solution 1 : full refactoring
Solution 2 : more easy.
@simone, @sylvainc. Could you take a look ? Note : this problem is present on odoo8 too. |
Hi everyone, |
Worth to note this module has another big design issue. It replaces the Manyone towards IMO this module should either be reworked in a clean way, either be removed. |
Yeah, this is very critical. Who was the original author/migrator? Is he/she (or anyone else) going to attend this? If not, we should remove it. |
Hello,
I'can only reply shortly sorry, i have not a easy fix because monkey
patching like this (in early startup) is too tricky and must be definitivly
avoid , please remove this module.
I'll try to find a workarround for the corrupted database.
Tanks for reporting
My mistake,
Regards,
Le 21 août 2017 9:53 AM, "Pedro M. Baeza" <notifications@github.com> a
écrit :
Yeah, this is very critical. Who was the original author/migrator? Is
he/she (or anyone else) going to attend this? If not, we should remove it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#200 (comment)>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/ABNlRkb-zwRAp6XfC5CJtbVZ1LE1w2OAks5saTeJgaJpZM4O61bZ>
.
|
[REM][8.0] remove pos_remove_pos_category Fix : #200
[REM][9.0] remove pos_remove_pos_category Fix : #200
[REM][10.0] remove pos_remove_pos_category Fix : #200
Thanks folks, needless to say that it had badside effects on my actual prod databases. Hopefully, -u all re-added all the FK. |
@flotho thanks for spotting this! 👍 for removal. |
In case you were wondering like I was, this problem did not affect 8.0 or 9.0. The bug was introduced here, during the migration to 10.0, by not returning a call to super but returning only a reference to the super method instead: https://github.com/OCA/pos/pull/158/files#diff-a2bb6a42189587ba52241d71ea03f98eL104 Thank you @flotho for doing all this investigation and pinpointing the problem to this particular module. |
Thanks @StefanRijnhart for this explanation. |
holy 💩 I'm gonna bury myself... 😢 |
@pedrobaeza @sylvainc @flotho @legalsylvain @simahawk Can you restore this addon. The fix is proposed for a long time and works fine... #182 |
Please restore the addon and add the patch in your PR, and if everything is correct, we merge at once. |
Please revert your merge, it is more simple. I pointed everyone in my PR months ago. |
Sorry, but we can't allowed a module that breaks whole installation. Restore it in your PR and when merged, everything will work correctly. You can press yourself in revert commit, and GitHub will propose a new PR. Cherry-pick your commit in top of it and it's done. |
Ok you are right. I renamed my PR description and add the revert of the removal. |
Thanks for the understanding, @Cedric-Pigeon |
Thanks you all |
Revert "[REM][8.0] remove pos_remove_pos_category Fix : #200"
* [ADD] setup.py * [UPD] addons table in README.md * [FIX] travis: Update travis file to new standard * Add new matrix * Add transifex support * Switch coveralls to travis_after_tests_success * Move pip requirements to requirements.txt * OCA Transbot updated translations from Transifex * OCA Transbot updated translations from Transifex * [UPD] addons table in README.md * [UPD] addons table in README.md * Make pos_customer_display odoo9 compatible * Fix version number of pos_customer_display * Port pos_customer_display to v10 Remove the "Show total to customer" button, which is not need given the new user interface of the POS: the big "Payment" button has this role now. Add README.rst * Display relevant info on LCD when Qty/price/discount is forced via the buttons of the POS frontend * Remove comment * [UPD] addons table in README.md * [ADD] setup.py * new module pos_margin * [PORT] 10.0 pos_margin * [UPD] addons table in README.md * [ADD] setup.py * OCA Transbot updated translations from Transifex * pos_remove_pos_category (OCA#148) * migrate to v9 and add italian translation * short headers * migrate JS * [fix] be defensive: do not assume we have a product category * OCA Transbot updated translations from Transifex * [MIG] pos_remove_pos_category: Migrated to 10.0 * [FIX] static javascript assets * [UPD] addons table in README.md * [ADD] setup.py * OCA Transbot updated translations from Transifex * [ADD] pos_loyalty: loyalty programs for POS (OCA#185) * [ADD] pos_loyalty: loyalty programs for POS * [FIX] Limit to one discount reward per order * [FIX] Remove unused variables and returns * [IMP] Refactoring rules loading * [UPD] addons table in README.md * [ADD] setup.py * OCA Transbot updated translations from Transifex * OCA Transbot updated translations from Transifex * [REM] remove pos_remove_pos_category Fix : OCA#200 * [UPD] addons table in README.md * Revert "[REM] remove pos_remove_pos_category Fix : OCA#200" This reverts commit 5825f0f. * [FIX] avoid monkey patch and error on foreign key constraint * [UPD] addons table in README.md * pos_remove_pos_category: inherit the proper view of product.template * [fix] compability between pos_customer_display and pos_pricelist (OCA#210) * [fix] compability between pos_customer_display and pos_pricelist * [UPD] addons table in README.md * [ADD] PoS session pay invoice module * [UPD] addons table in README.md * [add] pos_default_payment_method * fixup! [add] pos_default_payment_method * [UPD] addons table in README.md * [ADD] setup.py * [FIX] Fix pos_customer_display with Floors in Restaurant * Add mobule pos_backend_partner * Update readme Fix link to github * Improve readme and manifest * Add OCA dependencies for allowing tests on a not merged PR * Fix readme, fix indent, fix bug when choosing a customer in payment pane. * Add screenshots * Fix screenshot path * Update readme * Hide button when not opened by pos * [10.0] Remove hw_customer_display and hw_telium_payment_terminal (OCA#231) * Remove hw_customer_display and hw_telium_payment_terminal POSbox image runs Odoo v8, so we should maintain hw_* modules only in the 8.0 branch for the moment. * Update requirements.txt following removal of hw_* modules * [UPD] addons table in README.md * update oca_dependencies * update readme * Update __init__ * update manifest * update __init * fix copyright * fix copyright2 * update roadmap * OCA Transbot updated translations from Transifex * Add pos_backend_communication module * Update readme Fix github link * Update readme * Update readme.rst * Update common.js Fix typo * Update readme * [UPD] addons table in README.md * [ADD] setup.py * [ADD] module pos_price_to_weight (OCA#171) * [ADD] module pos_price_to_weight * [FIX] jslint / pylint / flake8 issues * OCA Transbot updated translations from Transifex * [MIG] pos_price_to_weight: Migration to 10.0 * [FIX] in v10, we can add value to selection fieldw * [UPD] addons table in README.md * [ADD] setup.py * [FIX] website URI * [FIX] website URI * remove duplicated act_windows * [ADD] new module pos_quick_logout (OCA#116) * OCA Transbot updated translations from Transifex * OCA Transbot updated translations from Transifex * [MIG] pos_quick_logout: Migration to 10.0 [FIX] Fix Travis [FIX] Fix Licence [FIX] rename pos_quick_logout.py to pos_config.py [FIX] Travis [FIX] fix javascript syntax + __manifest__ typo [FIX] fix python syntax [FIX] rename pos_quick_logout_view.xml to pos_config_view.xml [FIX] Travis : remove unused imports * [IMP] add autologout to pos_quick_logout [IMP] it's better to launch timeout fonction with start * [UPD] addons table in README.md * [ADD] setup.py * [FIX] remove outdated dependencies * OCA Transbot updated translations from Transifex * [ADD] new module pos_timeout * [UPD] addons table in README.md * [ADD] setup.py * [FIX] fixes currencies with decimals <>2 * [MIG] pos_pricelist: Migrate to v10 by backporting from v11 (OCA#247) This module included previously support for taxes and pricelists. Taxes are now included in upstream Odoo v10, so that feature is removed. The pricelist feature, however, is supported in upstream Odoo v11. Thus, to ease the migration path, that functionality has been scalpel-backported from there. This also means a great diff between previous OCA-only code and current Odoo-backport-only code, but with the advantage that the end user gets exactly the behavior that he would have when updating to v11. Since most of the code has been copied from Odoo, the addon now has to become LGPL, and Odoo has been added as an author. * [FIX] pos_pricelist: Fix language file * [UPD] addons table in README.md * [ADD] setup.py * [FIX] pos_pricelist: Use lower-version date comparison The removed function was introduced in momentjs in version 2.11.0, but Odoo 10.0 ships 2.8.1, so I'm using a different comparison system here that should yield the same results without exceptions. * [UPD] addons table in README.md * OCA Transbot updated translations from Transifex * [10.0][ADD] pos_lot_selection: New module (OCA#256) * [UPD] addons table in README.md * [ADD] setup.py * [ADD] pos_stock_picking_invoice_link: New Module * Add module pos_default_empty_image Big perf improvement for loading POS if you have thousand of products without image * Limit lines to < 80 chars * No new line at end of file * Add missing credits * description file; * Fix line length in readme Remove __openerp.py_.description Remove _name Remove unneeded contents in init * [PORT] pos_default_empty_image courtesy @invitu * [IMP] pos_default_empty_image courtesy @invitu * [FIX] set has_image on 'product.product' model [IMP] make has_image stored [REF] improve description and add screenshots [REF] OCA convention * [FIX] wording + remove useless JS code * [REF] cosmetic points * Fix readme remarks * [UPD] addons table in README.md * [ADD] setup.py * [UPD] addons table in README.md * [ADD] setup.py * Updated pos_product_template addon to Odoo 9 * Added Spanish translation to pos_product_template (es.po) * [FIX] Change the version number to 9 and make module installable. * Add readme, update manifest, switch to short copyright headers * Some refactorings * Refactore db * Refactore set_product_list * Remove comments * Add pos_fix_search_limit module * add pos_fix_search_limit in manifest * [UPD] addons table in README.md * [ADD] setup.py * Make the ppt inheritable
Hi everyone,
This one seems really weird. First I suspected that Odoo CE has removed FK in fresh databases : odoo/odoo#18880.
Yet starting with a fresh install with no specific addons in path make the things going well. Then repo by repo I added the dependencies and try to create new DB.
At last, this repo OCA/pos seeems to cause a creation with no Foreign keys.
I've updated the latest OCA/pos check all the depenecies, requirements etc, try many times to create with or without the dependencies. The result is the same, using OCA/pos cause no FK in the db!
Here are the logs, nothing special for me,any help would be appreciated.
odoo.log.txt
The text was updated successfully, but these errors were encountered: