[16.0][ADD] base_company_legal_info#674
Conversation
|
Hello @quentinDupont I wonder if it's really multi-companies oriented to belong to this repo. Eventually it could belong to https://github.com/OCA/partner-contact instead no? Just like the*company* modules of this partner_contact repo, no? Also for the legal name there is already a many2one |
ooooh res.partner.company.type is very interesting thanks ! |
Hi. could you elaborate I don't see module related to "res.company" model in this repo. I see modules related to partner "company = True" but it is unrelated. Or do you mean we should add that fields on res.partner level ? |
|
Hello @legalsylvain, may be these modules from partner-contact aren't company oriented. Still this doesn't make this new module fit a "multi" company purpose so I still wonder if it the proper repo... Or eventually we might decide that this repo is more about res.company extension in general than simply multi-companies. What do you think? |
I get your point. What do you think ? |
Point taken. I agree it makes sense in the repo then. |
|
ready for review ? |
indeed ! regarding @rvalyi answer, I think that it's the correct repo, so feel free to test & review ! |
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
|
could you rebase to trigger CI/CD? |
4718f98 to
d952e21
Compare
legalsylvain
left a comment
There was a problem hiding this comment.
Hi. Thanks for porting this module. 2 points :
-
you overloaded the web.external_layout_standard template.
However, in V16, there are 4 templates available.
(external_layout_boxed / external_layout_bold / external_layout_striped / external_layout_standard)
It's a mess...
To be complete, it could be great if the 4 templates was impacted by your module.
What do you think ? -
Also. there is a bug. Step to reproduce :
- go To setting > General Settings
- click on "configure Document Layout"
You face an error :
odoo.addons.base.models.ir_qweb.QWebException: Error while render the template
KeyError: 'report_legal_description'
Template: web.external_layout_standard
Path: /t/div[3]/div/ul/div[1]/span
Node:
The above server error caused the following client error:
null
|
@legalsylvain i think the new commits tackle all your remarks and i add tests for coverage |
legalsylvain
left a comment
There was a problem hiding this comment.
Diff review. LGTM.
Thanks !
LoisRForgeFlow
left a comment
There was a problem hiding this comment.
@quentinDupont could you squash all commits together?
72917c8 to
4c10960
Compare
done :) |
4c10960 to
d207d53
Compare
|
all remarks handled. /ocabot merge nobump |
|
On my way to merge this fine PR! |
|
@legalsylvain The merge process could not be finalized because an exception was raised: 503 Server Error: Service Unavailable for url: https://pypi.org/simple/odoo-addon-base-company-legal-info/. |
|
/ocabot merge nobump |
|
On my way to merge this fine PR! |
|
Congratulations, your PR was merged at b9eadbb. Thanks a lot for contributing to OCA. ❤️ |
Custom module used for several years in production. Migration in v16.
This module adds legal fields on companies :
legal_name: Also called 'Official Name' or 'Business Name', used in official documentslegal_type: to mention the juricial form of the company :Ltd ('Limited company' in many countries),
SARL ('Société Anonyme à Responsabilité Limitée' in France),
GmbH ('Gesellschaft mit beschränkter Haftung' in germany, Austria),
etc.
With that design, you can now use the
namefield for the Trade name of your companies.