11.0 mig website legal page - #403
Conversation
|
@nadiaafa can you squash transbot commit ? |
| </t> | ||
| </p> | ||
| <div> | ||
| <t t-if="res_company.phone or res_company.email or res_company.fax"> |
| </t> | ||
| </div> | ||
| <div> | ||
| <t t-if="res_company.phone or res_company.email or res_company.fax"> |
There was a problem hiding this comment.
res_company.fax does not exists anymore
|
@nadiaafa can you add me to your merge request branch ? I can make changes if needed . |
|
thank you @njeudy i added you 👍 |
ffe0f58 to
2f9e7ae
Compare
|
I clean history and keep you as author of last commit :) wait for ci :) |
|
Merci @njeudy |
|
@nadiaafa should look to test failed .. will work on it tomorrow. |
|
Think odoo 11 return 200 and not 404 when page does not existe, because "GET http://legal/no-page HTTP/1.1" 200 - Because odoo propose to create un new page Will change test function to reflect this .. |
2f9e7ae to
fccd802
Compare
|
Hey @nadiaafa, thank you for your Pull Request. It looks like some users haven't signed our Contributor License Agreement, yet.
Appreciation of efforts, |
fccd802 to
592910b
Compare
|
@pedrobaeza @lasley should we correct lint error that is on an other module ? |
|
@njeudy - nah just the lints in this module will be fine. Not sure why the others are failing - AFAIK they're only supposed to trigger on changed modules. |
|
|
||
| This module was written to provide common legal pages needed in any website: | ||
|
|
||
| * **Legal advice**: Website propietary and disclaimers |
| @@ -0,0 +1,2 @@ | |||
| # -*- coding: utf-8 -*- | |||
There was a problem hiding this comment.
remove coding headers from all py files
| 'LasLabs, ' | ||
| 'Nicolas JEUDY, ' | ||
| 'Odoo Community Association (OCA)', | ||
| 'website': 'https://www.tecnativa.com', |
| response = self.url_open(page, timeout=20) | ||
| self.assertEqual(response.status_code, code) | ||
|
|
||
| # TODO: comment this test because odoo 11 return 200 even if page does not exist.. |
There was a problem hiding this comment.
Instead of this, you should:
# HACK https://github.com/odoo/odoo/issues/22438
# TODO Remove when fixed
@unittest.expectedFailure
#[and here the test, uncommented]There was a problem hiding this comment.
@njeudy it's fixed. Would you mind dropping the hack? :)
- Fix review comments - Icon changed - Bug tracker added - [IMP] README and OCA as author
Many submodules from this one need the template I'm adding. Having it here allows for better reusability and avoids duplicated translation efforts.
OCA Transbot updated translations from Transifex
* Move legal pages to explicit /legal routes Fixes by PR review Fix my obvious lack of testing
- Update copyright headers. - Update copyright holders data. - Remove .pot file. - Add migration script.
* [ADD][website_multi_theme] Allow different themes by website This a somewhat hacky addon that adds support for setting a different theme by website. Always updates views arch in development and demo instances. This allows faster development, while keeping stability and no surprises in production. * fixup! [ADD][website_multi_theme] Allow different themes by website * fixup! fixup! [ADD][website_multi_theme] Allow different themes by website * fixup! fixup! fixup! [ADD][website_multi_theme] Allow different themes by website * fixup! fixup! fixup! fixup! [ADD][website_multi_theme] Allow different themes by website * fixup! fixup! fixup! fixup! fixup! [ADD][website_multi_theme] Allow different themes by website * fixup! fixup! fixup! fixup! fixup! fixup! [ADD][website_multi_theme] Allow different themes by website * fixup! fixup! fixup! fixup! fixup! fixup! fixup! [ADD][website_multi_theme] Allow different themes by website * [FIX][website_legal_page] Correctly raise a 404 error instead of a 500 if a view is not found * fixup! fixup! fixup! fixup! fixup! fixup! fixup! [ADD][website_multi_theme] Allow different themes by website * fixup! [FIX][website_legal_page] Correctly raise a 404 error instead of a 500 if a view is not found * squash! fixup! [FIX][website_legal_page] Correctly raise a 404 error instead of a 500 if a view is not found Fix tests that were getting warnings logged and random timeouts.
592910b to
b213685
Compare
b213685 to
970fd8f
Compare
|
@simahawk i can't have ci ok because ok website_multi_theme module .. and I think it depends of odoo module .. should I try to correct this ? |
|
@njeudy travis is red because of linting. You should fix that. Runbot is actually yellow for a warning but it should have been fixed in OCB and MQT. |
| response = self.url_open(page, timeout=20) | ||
| self.assertEqual(response.status_code, code) | ||
|
|
||
| # TODO: comment this test because odoo 11 return 200 even if page does not exist.. |
There was a problem hiding this comment.
Instead of this, you should:
# HACK https://github.com/odoo/odoo/issues/22438
# TODO Remove when fixed
@unittest.expectedFailure
#[and here the test, uncommented]|
@yajo @simahawk : the linter is on an other already merge module .. I should correct in this merge request ? |
a3f0c94 to
008a90a
Compare
|
@yajo ok for you ? linter is green :) |



No description provided.