Skip to content
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

[ADD] condominium: Condominium #98

Open
wants to merge 27 commits into
base: 17.0
Choose a base branch
from

Conversation

dhrs-odoo
Copy link
Contributor

This industry is tailor-made for condominium businesses that aim to manage co-ownership properties. Such a business is complex because it implies managing all the aspects of the properties while fairly splitting the charges.
Moreover, the business is legally regulated in lots of countries under different names: condo in the US, co-ownership in Canada, joint domination in the UK, property syndicate in France, syndic in Belgium, etc

Task: 3754260

@dhrs-odoo dhrs-odoo force-pushed the 17.0-industry-condominium-dhrs branch from cff695c to afd569c Compare March 21, 2024 11:49
@dhrs-odoo dhrs-odoo force-pushed the 17.0-industry-condominium-dhrs branch 9 times, most recently from e6da0e2 to a934764 Compare April 23, 2024 10:47
@dhrs-odoo dhrs-odoo force-pushed the 17.0-industry-condominium-dhrs branch from 55452a5 to bed049f Compare April 26, 2024 09:02
@dhrs-odoo dhrs-odoo changed the title 17.0 industry condominium dhrs [ADD] condominium: Condominium Apr 26, 2024
@dhrs-odoo dhrs-odoo force-pushed the 17.0-industry-condominium-dhrs branch 3 times, most recently from b148b5b to 9563fdb Compare April 30, 2024 06:12
Copy link
Collaborator

@vava-odoo vava-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dhrs-odoo
Thanks for this very good work! Since it is good, I looked even deeper into it 👀
Could you have a look at all the comments?
Cheers!

condominium/data/knowledge_article.xml Outdated Show resolved Hide resolved
<h2>Easily convert the homeowner associations 🖋️</h2>
<p>
As soon as the homeowner association reaches you to get a quote, quickly send them an overview of your services and fees by creating
<span tabindex="-1" data-oe-protected="true" class="o_knowledge_view_link text-o-color-1 o_knowledge_behavior_anchor o_knowledge_behavior_type_view_link">Quotations</span> in the Sales application where you can directly use the
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quotations does not appear in the knowledge

condominium/data/knowledge_article.xml Outdated Show resolved Hide resolved
condominium/data/knowledge_article.xml Outdated Show resolved Hide resolved
condominium/data/knowledge_article.xml Outdated Show resolved Hide resolved
condominium/demo/x_units.xml Outdated Show resolved Hide resolved
condominium/static/src/binary/hr_employee/1-image_1920 Outdated Show resolved Hide resolved
Comment on lines 10 to 25
'account_check_printing',
'account_followup',
'appointment_account_payment',
'contacts',
'documents_hr',
'documents_product',
'documents_project_sale',
'documents_spreadsheet',
'helpdesk_sale_timesheet',
'hr_skills',
'sale_pdf_quote_builder',
'sale_planning',
'sale_subscription',
'website_appointment',
'website_helpdesk_knowledge',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As explained in task, to me it can reduced to

Suggested change
'account_check_printing',
'account_followup',
'appointment_account_payment',
'contacts',
'documents_hr',
'documents_product',
'documents_project_sale',
'documents_spreadsheet',
'helpdesk_sale_timesheet',
'hr_skills',
'sale_pdf_quote_builder',
'sale_planning',
'sale_subscription',
'website_appointment',
'website_helpdesk_knowledge',
'account_check_printing',
'account_followup',
'contacts',
'documents_product',
'documents_project_sale',
'documents_spreadsheet',
'helpdesk_sale_timesheet',
'sale_subscription',

@dhrs-odoo dhrs-odoo force-pushed the 17.0-industry-condominium-dhrs branch 2 times, most recently from 42cd4a3 to 92bb47a Compare May 8, 2024 09:26
condominium/demo/project_project.xml Show resolved Hide resolved
Comment on lines 24 to 25
for so in records:
so.action_confirm()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reading twice... Why do we need this server action? Couldn't we call action_confirm directly on the view?

Also, no need to loop as this method works on a recordset.

Suggested change
for so in records:
so.action_confirm()
records.action_confirm()

condominium/data/ir_actions_server.xml Outdated Show resolved Hide resolved
condominium/data/ir_actions_server.xml Outdated Show resolved Hide resolved
condominium/data/ir_actions_server.xml Outdated Show resolved Hide resolved
@dhrs-odoo dhrs-odoo force-pushed the 17.0-industry-condominium-dhrs branch from 92bb47a to 50a4ab5 Compare May 8, 2024 12:36
condominium/data/ir_ui_view.xml Outdated Show resolved Hide resolved
condominium/data/ir_ui_view.xml Outdated Show resolved Hide resolved
condominium/data/ir_ui_view.xml Outdated Show resolved Hide resolved
condominium/data/ir_actions_server.xml Outdated Show resolved Hide resolved
@dhrs-odoo
Copy link
Contributor Author

Hello @vava-odoo
I have completed all the suggested changes
Can you have a look at it once you are free
Thank You 😇

…ed sale orders and lines and removed the link in knowledge artilce
@dhrs-odoo dhrs-odoo force-pushed the 17.0-industry-condominium-dhrs branch from 6751537 to e524bf5 Compare May 15, 2024 11:42
Copy link
Collaborator

@vava-odoo vava-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update @dhrs-odoo
Please find a few more comments about the updated version.
Keep the good work!
Cheers.

Comment on lines +3 to +11
<function name="run" model="ir.actions.server" context="{'active_model': 'sale.order', 'active_id': ref('sale_order_144')}">
<value eval="[ref('ir_act_server_split_per_property')]"/>
</function>
<function name="run" model="ir.actions.server" context="{'active_model': 'sale.order', 'active_id': ref('sale_order_154')}">
<value eval="[ref('ir_act_server_split_per_property')]"/>
</function>
<function name="run" model="ir.actions.server" context="{'active_model': 'sale.order', 'active_id': ref('sale_order_166')}">
<value eval="[ref('ir_act_server_split_per_property')]"/>
</function>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good! I think we still need to confirm some of the generated orders, as was the case originally.

<?xml version='1.0' encoding='UTF-8'?>
<odoo>
<record id="form_view_x_units_tag" model="ir.ui.view">
<field name="name">Default form view for x_units_tag</field>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you improve the name of the views?

<field name="x_tenant_id" optional="hide"/>
<field name="x_tag_ids" widget="many2many_tags" options="{'color_field': 'x_color'}" optional="show"/>
<field name="x_area" optional="show"/>
<field name="x_area_percent" optional="show"/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<field name="x_area_percent" optional="show"/>
<field name="x_area_percent" optional="show" widget="percentage"/>

<field name="type">map</field>
<field name="arch" type="xml">
<map res_partner="x_partner_id">
<field name="x_partner_id" string="Partner"/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Owner makes more sense

Suggested change
<field name="x_partner_id" string="Partner"/>
<field name="x_partner_id"/>

</record>
<record id='kanban_view_ir_model_custom' model='ir.ui.view'>
<field name="name">Default kanban view for ir.model(790,) customization</field>
<field name="model">x_units</field>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Suggested change
<field name="model">x_units</field>
<field name="model">x_units</field>
<field name="type">kanban</field>

<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='has_recurring_line']" position="after">
<button name="%(ir_act_server_split_per_property)d" string="Split per Property" type="action" invisible="not x_condominium_units_ids"/>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it using the one from the action by default?

Suggested change
<button name="%(ir_act_server_split_per_property)d" string="Split per Property" type="action" invisible="not x_condominium_units_ids"/>
<button name="%(ir_act_server_split_per_property)d" type="action" invisible="not x_condominium_units_ids"/>

<field name="type">form</field>
<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='has_recurring_line']" position="after">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is not a good idea to do an xpath on an invisible field

Suggested change
<xpath expr="//field[@name='has_recurring_line']" position="after">
<xpath expr="//header" position="inside">

Comment on lines +250 to +251
</xpath>
<xpath expr="//button[@name='action_sale_order_log']" position="after">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me it can be removed, as it can be in the header as well, no?

Suggested change
</xpath>
<xpath expr="//button[@name='action_sale_order_log']" position="after">

Comment on lines +260 to +303
<xpath expr="//group[@name='subscription_info']" position="after">
<xpath expr="//field[@name='commercial_partner_id']" position="move"/>
</xpath>
<xpath expr="//form//page[@name='other_information']//group[@name='sale_info']/label" position="before">
<xpath expr="//field[@name='show_update_fpos']" position="move"/>
</xpath>
<xpath expr="//button[@name='action_update_taxes']" position="before">
<xpath expr="//field[@name='fiscal_position_id']" position="move"/>
</xpath>
<xpath expr="//form//page[@name='other_information']//group[@name='sale_info']/div" position="after">
<xpath expr="//form//page[@name='other_information']//group[@name='sale_info']/field[@name='partner_invoice_id']" position="move"/>
<xpath expr="//field[@name='analytic_account_id']" position="move"/>
<xpath expr="//field[@name='visible_project']" position="move"/>
<xpath expr="//field[@name='project_id']" position="move"/>
<xpath expr="//field[@name='journal_id']" position="move"/>
</xpath>
<xpath expr="//form//page[@name='other_information']//group[@name='sale_info']/div" position="after">
<xpath expr="//form//page[@name='other_information']//group[@name='sale_info']/field[@name='invoice_status']" position="move"/>
</xpath>
<xpath expr="//span[@name='expected_date_span']" position="before">
<xpath expr="//field[@name='commitment_date']" position="move"/>
</xpath>
<xpath expr="//span[@name='expected_date_span']" position="inside">
<xpath expr="//field[@name='expected_date']" position="move"/>
</xpath>
<xpath expr="//group[@name='sale_reporting']" position="inside">
<xpath expr="//field[@name='origin']" position="move"/>
<xpath expr="//field[@name='campaign_id']" position="move"/>
<xpath expr="//field[@name='medium_id']" position="move"/>
<xpath expr="//field[@name='source_id']" position="move"/>
</xpath>
<xpath expr="//form//page[@name='customer_signature']/group" position="inside">
<xpath expr="//field[@name='signed_by']" position="move"/>
<xpath expr="//field[@name='signed_on']" position="move"/>
<xpath expr="//field[@name='signature']" position="move"/>
</xpath>
<xpath expr="//page[@name='notes']" position="inside">
<xpath expr="//field[@name='internal_note_display']" position="move"/>
</xpath>
<xpath expr="//form/div" position="inside">
<xpath expr="//field[@name='message_follower_ids']" position="move"/>
<xpath expr="//field[@name='activity_ids']" position="move"/>
<xpath expr="//field[@name='message_ids']" position="move"/>
</xpath>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to move all those fields? 🤔

Comment on lines +197 to +201
<data>
<xpath expr="//kanban//templates//t/field[@name='country_id']" position="after">
<field name="x_condominiums_ids" display="full"/>
</xpath>
</data>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, no <data> in arch of inherited view

Suggested change
<data>
<xpath expr="//kanban//templates//t/field[@name='country_id']" position="after">
<field name="x_condominiums_ids" display="full"/>
</xpath>
</data>
<xpath expr="//kanban//templates//t/field[@name='country_id']" position="after">
<field name="x_condominiums_ids" display="full"/>
</xpath>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants