Skip to content

[IMP] l10n_ar_sale: calculate dates for billing in arrears#245

Closed
lav-adhoc wants to merge 1 commit intoingadhoc:18.0from
adhoc-dev:18.0-t-50515-lav
Closed

[IMP] l10n_ar_sale: calculate dates for billing in arrears#245
lav-adhoc wants to merge 1 commit intoingadhoc:18.0from
adhoc-dev:18.0-t-50515-lav

Conversation

@lav-adhoc
Copy link
Copy Markdown
Contributor

No description provided.

@roboadhoc
Copy link
Copy Markdown
Contributor

@lav-adhoc lav-adhoc force-pushed the 18.0-t-50515-lav branch 3 times, most recently from 50cba66 to 853a064 Compare June 24, 2025 18:10
Comment thread l10n_ar_sale/__manifest__.py Outdated
to_fix._compute_l10n_latam_available_document_types()
if self.is_module_installed("sale_subscription_ux"):
for invoice in invoices:
so = invoice.invoice_line_ids[0].sale_line_ids.order_id or False
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good to me! only leave a comment telling that if you try to generate an invoice from multiple sale order only will take the period of the first invoice line

In a if a future if it is needed we can change it to computhe the start/end date computing the information of all the plan period (only have sense if the period are consecutive

if self.is_module_installed("sale_subscription_ux"):
for invoice in invoices:
so = invoice.invoice_line_ids[0].sale_line_ids.order_id or False
if so and so.plan_id.bill_end_period:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Runbot returns this error:
AttributeError: 'sale.subscription.plan' object has no attribute 'bill_end_period'. Did you mean: 'billing_period'?

@lav-adhoc lav-adhoc requested a review from zaoral June 25, 2025 18:55
@lav-adhoc lav-adhoc force-pushed the 18.0-t-50515-lav branch 3 times, most recently from 9a54633 to 490807d Compare June 25, 2025 19:45
@matiasperalta1
Copy link
Copy Markdown
Contributor

@roboadhoc r+

roboadhoc pushed a commit that referenced this pull request Jun 26, 2025
closes #245

Signed-off-by: matiasperalta1 <mnp@adhoc.com.ar>
roboadhoc pushed a commit that referenced this pull request Jun 26, 2025
closes #245

Signed-off-by: matiasperalta1 <mnp@adhoc.com.ar>
@roboadhoc roboadhoc closed this in 559bc95 Jun 26, 2025
@roboadhoc roboadhoc added the 17.1 label Jun 26, 2025
@fw-bot-adhoc fw-bot-adhoc deleted the 18.0-t-50515-lav branch July 10, 2025 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants