-
Notifications
You must be signed in to change notification settings - Fork 82
[IMP] accounting_firm: add features for AML, ID and CSAM #1206
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?
Conversation
c59dee0 to
67b2b6e
Compare
67b2b6e to
0d5f42e
Compare
| <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)]"/> |
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.
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, |
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 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, |
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.
False is the fallback if there is none. Or did I miss something?
| "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'): |
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.
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({ |
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.
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> |
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 stick to lowercases for values?
| <field name="value">Quarterly</field> | |
| <field name="value">quarterly</field> |
| <field name="name">x_assistant_id</field> | ||
| <field name="field_description">Assistant</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">x_assistant_id</field> | |
| <field name="field_description">Assistant</field> | |
| <field name="name">x_assistant_ids</field> | |
| <field name="field_description">Assistants</field> |
| <field name="name">x_reviewer_id</field> | ||
| <field name="field_description">Reviewer</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">x_reviewer_id</field> | |
| <field name="field_description">Reviewer</field> | |
| <field name="name">x_reviewer_ids</field> | |
| <field name="field_description">Reviewers</field> |
| <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> |
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.
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"/> |
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.
Why 500? Have you tried opening the view in mobile?

No description provided.