-
Notifications
You must be signed in to change notification settings - Fork 87
19.0 matchmaking real estate update frva #1514
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
base: 19.0
Are you sure you want to change the base?
19.0 matchmaking real estate update frva #1514
Conversation
e94dae8 to
f1d7049
Compare
3a731b8 to
25200a2
Compare
dhrs-odoo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @frva-odoo
Thanks for the good work
Just few comments as of now 😇
|
You also need to update the POT file |
27cc737 to
d890050
Compare
vava-odoo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work!
Please squash your commits while resolving the comments :-)
| <field name="sequence">15</field> | ||
| <field name="attribute_id" ref="product_attribute_15"/> | ||
| <field name="value_ids" eval="[(6, 0, [ref('product_attribute_value_15')])]"/> | ||
| <field name="attribute_id" ref="product_attribute_17"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we shouldn't change the xmlid of this record, because it is marked as noupdate.
You could try the behaviour: install previous version and try to upgrade with new version and see how the products are.
That being said, it can be ok, since these are demo data, so we are not supposed to upgrade them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You were right, it brings an issue when updating if we install the new version while changing those records.
| </record> | ||
| <record id="product_template_attribute_value_6" model="product.template.attribute.value"> | ||
| <field name="product_attribute_value_id" ref="product_attribute_value_15"/> | ||
| <field name="product_attribute_value_id" ref="product_attribute_value_26"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
| ]]></field> | ||
| <field name="ttype">many2many</field> | ||
| <field name="depends">x_categories_ids, x_region_ids, x_type, x_condition_ids, x_min_price, x_max_price</field> | ||
| <field name="depends">x_categories_ids, x_criteria_ids, x_min_price, x_max_price</field> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the compute can probably be edited as well
real_estate/data/ir_ui_menu.xml
Outdated
| <menuitem id="crm_sellers_menu" name="Sellers" action="owners_act_window" sequence="1" parent="crm.crm_menu_sales"/> | ||
| <record id="properties_menu_root" model="ir.ui.menu"> | ||
| <field name="web_icon_data" type="base64" file="real_estate/static/description/icon_no_border.png"/> | ||
| <field name="web_icon_data" type="base64" file="real_estate/static/description/icon.png"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will conflict with a recent change
real_estate/data/ir_ui_view.xml
Outdated
| <field name="priority">200</field> | ||
| <field name="type">search</field> | ||
| <field name="arch" type="xml"> | ||
| <search string="Search Partner"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
partner 🧐
real_estate/data/ir_ui_view.xml
Outdated
| ]"/> | ||
| </record> | ||
| <record id="product_attribute_form_view_extended" model="ir.ui.view"> | ||
| <field name="name">product.attribute.form customization</field> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <field name="name">product.attribute.form customization</field> | |
| <field name="name">product.attribute.form.inherit.real_estate</field> |
real_estate/data/website_view.xml
Outdated
| </label> | ||
| <div class="row s_col_no_resize s_col_no_bgcolor s_website_form_multiple" data-name="x_criteria_ids" data-display="vertical"> | ||
| <t t-set="attr_values" t-value="request.env['product.attribute.value'].search([('attribute_id', '=', attr.id)])"/> | ||
| <t t-foreach="attr_values" t-as="attr"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe use another variable name than attr which is already use for the attribute
| t-att-for="'condition_attrs_values' + str(condition.id)"> | ||
| <t t-out="condition.name"/> | ||
| </label> | ||
| <t t-foreach="request.env['product.attribute'].search([('x_is_matchmaking', '!=', False)])" t-as="attr"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I usually see limits added to the search. Is there any performance issue to fear here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the second search inside so we could have better performances, but I don't think we want to limit the amount of attributes that can be displayed in the website form, or if we do I don't know how many we can have (at least limit=20 I guess).
Anyway I think it is optimized enough to have no issue right now, tell me if you think we should improve further
d890050 to
9f53594
Compare
This commit improves the matchmaking on both the frontend and backend. The partners now have a single field "Criterias" to manage the attributes values for each matchmaking product attribute value. The website template view of the matchmaking is changed, made to take every product attribute we want instead of hardcoding every single one. Product attributes have now a field "Matchmaking", marking them and their values to be used in the previous cases. It also moves the "Region" product attribute values in demo, adds an attribute menu in the real_estate app and removes one of the "Bathroom" attributes to avoid redundancy. Task-5143951
9f53594 to
a26ea7e
Compare

No description provided.