Skip to content

Conversation

frva-odoo
Copy link
Contributor

No description provided.

@robodoo
Copy link
Collaborator

robodoo commented Oct 9, 2025

Pull request status dashboard

@frva-odoo frva-odoo force-pushed the 19.0-accounting-firm-id-aml-frva branch 2 times, most recently from c59dee0 to 67b2b6e Compare October 10, 2025 14:29
@frva-odoo frva-odoo force-pushed the 19.0-accounting-firm-id-aml-frva branch from 67b2b6e to 0d5f42e Compare October 10, 2025 14:54
<function model="base.automation" name="unlink">
<value model="base.automation" eval="obj().search([('id', 'in', [ref('accounting_firm.base_automation_1'), ref('accounting_firm.base_automation_2')])]).ids"/>
</function>
<function name="button_immediate_uninstall" model="ir.module.module" eval="[ref('base.module_web_studio', raise_if_not_found=False)]"/>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove the installation triggered in demo/base_automation.xml as well
By the way, don't we need to edit those server actions?

"views": [[False, "form"]],
"target": "new",
"context": {
"default_folder_id": 2,
Copy link
Collaborator

Choose a reason for hiding this comment

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

You probably want to use a reference here instead of an hardcoded id

"target": "new",
"context": {
"default_folder_id": 2,
"default_res_id": record.id or False,
Copy link
Collaborator

Choose a reason for hiding this comment

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

False is the fallback if there is none. Or did I miss something?

Suggested change
"default_res_id": record.id or False,
"default_res_id": record.id,

<field name="state">code</field>
<field name="name">Update Owner ID</field>
<field name="code"><![CDATA[
for ubo in records.filtered('attachment_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 enough to hide the button on the form if there is no attachment?

ubo.holder_id['x_id_expiration_date'] = ubo.attachment_expiration_date
ubo.holder_id.message_post(
body="The Identity Document Scan changed for this one: ",
attachment_ids=[env['ir.attachment'].create({
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are you creating a new attachment and reusing ubo.attachment_ids[-1]

<record id="x_vat_declaration_recurrence_field_selection_quarterly" model="ir.model.fields.selection">
<field name="name">Quarterly</field>
<field name="field_id" ref="x_vat_declaration_recurrence_field_res_partner" />
<field name="value">Quarterly</field>
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe stick to lowercases for values?

Suggested change
<field name="value">Quarterly</field>
<field name="value">quarterly</field>

Comment on lines +277 to +278
<field name="name">x_assistant_id</field>
<field name="field_description">Assistant</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="name">x_assistant_id</field>
<field name="field_description">Assistant</field>
<field name="name">x_assistant_ids</field>
<field name="field_description">Assistants</field>

Comment on lines +285 to +286
<field name="name">x_reviewer_id</field>
<field name="field_description">Reviewer</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="name">x_reviewer_id</field>
<field name="field_description">Reviewer</field>
<field name="name">x_reviewer_ids</field>
<field name="field_description">Reviewers</field>

Comment on lines +58 to +62
<xpath expr="//group[@id='accounting_firm_id_page_left_group']" position="inside">
<xpath expr="//field[@name='ubo_national_identifier']" position="move"/>
<xpath expr="//field[@name='ubo_birth_date']" position="move"/>
<xpath expr="//field[@name='ubo_birth_place']" 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.

Don't use xpath for no reason, just move the content up (line 29)

<list editable="bottom">
<field name="x_name"/>
<field name="x_level"/>
<field name="x_explanation" width="500"/>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why 500? Have you tried opening the view in mobile?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants