Skip to content

Conversation

@aboo-odoo
Copy link
Contributor

Problem

There is currently no formula to get the residual amount of accounts nor to get the balance of a partner in a given period of time in spreadsheets.

Objective

Add the formula ODOO.RESIDUAL and ODOO.PARTNER.BALANCE that do just that

ODOO.RESIDUAL should take the following parameters:

  • account_codes (mandatory)(can be more than one separate by ,): could be optional, in that case it could set the domain to all receivables/payables accounts
  • due_date_range or expected_date (optional): date range referred to due dates (not AML date)
  • offset (optional): adding the possibility of the offset to be not only “Year” but also, a specific date or other periods like Month, Quarter.
  • company_id (optional)
  • include_unposted (optional) (default: false)

ODOO.PARTNER.BALANCE should take the following paramters:

  • partner_ids (mandatory) (can be more than one separate by ,)
  • accound_codes (optional) (the prefix of the account(s))
  • date_range (optional) (21/12/2022,Q1 2022, 12/2022, 2022)
  • offset (optional) (default: 0)
  • company_id (optional)
  • include_unposted (optional) (default: false)

Solution

  1. Define the spreadsheet function with the correct parameters in accounting_function.js
  2. Hook it to the data source so that it can perform server calls
  3. Craft that server python function to returns the list a residual amounts for the given list of parameters.
  4. Adds some tests.

Task-3679808


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@robodoo
Copy link
Contributor

robodoo commented Jan 21, 2025

Pull request status dashboard

@C3POdoo C3POdoo added the RD research & development, internal work label Jan 21, 2025
@C3POdoo C3POdoo requested a review from a team January 21, 2025 15:02
@aboo-odoo aboo-odoo force-pushed the 18.0-spreadsheet-formula-aboo branch 2 times, most recently from 7445d4c to d9d6f6d Compare January 22, 2025 09:44
@aboo-odoo
Copy link
Contributor Author

POT Added back 👍 @william-andre

@aboo-odoo aboo-odoo force-pushed the 18.0-spreadsheet-formula-aboo branch 2 times, most recently from ac25491 to d540b27 Compare January 22, 2025 15:57
@aboo-odoo
Copy link
Contributor Author

aboo-odoo commented Jan 22, 2025

@VincentSchippefilt Thanks for the feedback, is the new version taking care of that ?

@aboo-odoo aboo-odoo force-pushed the 18.0-spreadsheet-formula-aboo branch from d540b27 to b12e650 Compare January 23, 2025 08:48
@VincentSchippefilt
Copy link
Contributor

@VincentSchippefilt Thanks for the feedback, is the new version taking care of that ?

I have no idea what you mean but I see you have updated the code correctly 👍

….BALANCE

Problem
---------
There is currently no formula to get the residual amount of accounts nor
to get the balance of a partner in a given period of time in
spreadsheets.

Objective
---------
Add the formula ODOO.RESIDUAL and ODOO.PARTNER.BALANCE that do just that

ODOO.RESIDUAL should take the following parameters:
- account_codes (mandatory)(can be more than one separate by ,): could
be optional, in that case it could set the domain to all
receivables/payables accounts
- due_date_range or expected_date (optional): date range referred to due
dates (not AML date)
- offset (optional): adding the possibility of the offset to be not only
“Year” but also, a specific date or other periods like Month, Quarter.
- company_id (optional)
- include_unposted (optional) (default: false)

ODOO.PARTNER.BALANCE should take the following paramters:
- partner_ids (mandatory) (can be more than one separate by ,)
- accound_codes (optional) (the prefix of the account(s))
- date_range (optional) (21/12/2022,Q1 2022, 12/2022, 2022)
- offset (optional) (default: 0)
- company_id (optional)
- include_unposted (optional) (default: false)

Solution
---------
1. Define the spreadsheet function with the correct parameters in
`accounting_function.js`
2. Hook it to the data source so that it can perform server calls
3. Craft that server python function to returns the list a residual
amounts for the given list of parameters.
4. Adds some tests.

Task-3679808
@aboo-odoo aboo-odoo force-pushed the 18.0-spreadsheet-formula-aboo branch from b12e650 to 652d8bf Compare January 23, 2025 15:18
Copy link
Contributor

@william-andre william-andre left a comment

Choose a reason for hiding this comment

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

@robodoo robodoo closed this in a1eed62 Jan 23, 2025
adhoc-cicd-bot pushed a commit to adhoc-cicd/odoo-odoo that referenced this pull request Jan 26, 2025
….BALANCE

Problem
---------
There is currently no formula to get the residual amount of accounts nor
to get the balance of a partner in a given period of time in
spreadsheets.

Objective
---------
Add the formula ODOO.RESIDUAL and ODOO.PARTNER.BALANCE that do just that

ODOO.RESIDUAL should take the following parameters:
- account_codes (mandatory)(can be more than one separate by ,): could
be optional, in that case it could set the domain to all
receivables/payables accounts
- due_date_range or expected_date (optional): date range referred to due
dates (not AML date)
- offset (optional): adding the possibility of the offset to be not only
“Year” but also, a specific date or other periods like Month, Quarter.
- company_id (optional)
- include_unposted (optional) (default: false)

ODOO.PARTNER.BALANCE should take the following paramters:
- partner_ids (mandatory) (can be more than one separate by ,)
- accound_codes (optional) (the prefix of the account(s))
- date_range (optional) (21/12/2022,Q1 2022, 12/2022, 2022)
- offset (optional) (default: 0)
- company_id (optional)
- include_unposted (optional) (default: false)

Solution
---------
1. Define the spreadsheet function with the correct parameters in
`accounting_function.js`
2. Hook it to the data source so that it can perform server calls
3. Craft that server python function to returns the list a residual
amounts for the given list of parameters.
4. Adds some tests.

Task-3679808

closes odoo#194567

Signed-off-by: William André (wan) <wan@odoo.com>
gamarino pushed a commit to numaes/numa-public-odoo that referenced this pull request Jan 27, 2025
….BALANCE

Problem
---------
There is currently no formula to get the residual amount of accounts nor
to get the balance of a partner in a given period of time in
spreadsheets.

Objective
---------
Add the formula ODOO.RESIDUAL and ODOO.PARTNER.BALANCE that do just that

ODOO.RESIDUAL should take the following parameters:
- account_codes (mandatory)(can be more than one separate by ,): could
be optional, in that case it could set the domain to all
receivables/payables accounts
- due_date_range or expected_date (optional): date range referred to due
dates (not AML date)
- offset (optional): adding the possibility of the offset to be not only
“Year” but also, a specific date or other periods like Month, Quarter.
- company_id (optional)
- include_unposted (optional) (default: false)

ODOO.PARTNER.BALANCE should take the following paramters:
- partner_ids (mandatory) (can be more than one separate by ,)
- accound_codes (optional) (the prefix of the account(s))
- date_range (optional) (21/12/2022,Q1 2022, 12/2022, 2022)
- offset (optional) (default: 0)
- company_id (optional)
- include_unposted (optional) (default: false)

Solution
---------
1. Define the spreadsheet function with the correct parameters in
`accounting_function.js`
2. Hook it to the data source so that it can perform server calls
3. Craft that server python function to returns the list a residual
amounts for the given list of parameters.
4. Adds some tests.

Task-3679808

closes odoo/odoo#194567

Signed-off-by: William André (wan) <wan@odoo.com>
adhoc-cicd-bot pushed a commit to adhoc-cicd/odoo-odoo that referenced this pull request Jan 29, 2025
….BALANCE

Problem
---------
There is currently no formula to get the residual amount of accounts nor
to get the balance of a partner in a given period of time in
spreadsheets.

Objective
---------
Add the formula ODOO.RESIDUAL and ODOO.PARTNER.BALANCE that do just that

ODOO.RESIDUAL should take the following parameters:
- account_codes (mandatory)(can be more than one separate by ,): could
be optional, in that case it could set the domain to all
receivables/payables accounts
- due_date_range or expected_date (optional): date range referred to due
dates (not AML date)
- offset (optional): adding the possibility of the offset to be not only
“Year” but also, a specific date or other periods like Month, Quarter.
- company_id (optional)
- include_unposted (optional) (default: false)

ODOO.PARTNER.BALANCE should take the following paramters:
- partner_ids (mandatory) (can be more than one separate by ,)
- accound_codes (optional) (the prefix of the account(s))
- date_range (optional) (21/12/2022,Q1 2022, 12/2022, 2022)
- offset (optional) (default: 0)
- company_id (optional)
- include_unposted (optional) (default: false)

Solution
---------
1. Define the spreadsheet function with the correct parameters in
`accounting_function.js`
2. Hook it to the data source so that it can perform server calls
3. Craft that server python function to returns the list a residual
amounts for the given list of parameters.
4. Adds some tests.

Task-3679808

closes odoo#194567

Signed-off-by: William André (wan) <wan@odoo.com>
adhoc-cicd-bot pushed a commit to adhoc-cicd/odoo-odoo that referenced this pull request Jan 29, 2025
….BALANCE

Problem
---------
There is currently no formula to get the residual amount of accounts nor
to get the balance of a partner in a given period of time in
spreadsheets.

Objective
---------
Add the formula ODOO.RESIDUAL and ODOO.PARTNER.BALANCE that do just that

ODOO.RESIDUAL should take the following parameters:
- account_codes (mandatory)(can be more than one separate by ,): could
be optional, in that case it could set the domain to all
receivables/payables accounts
- due_date_range or expected_date (optional): date range referred to due
dates (not AML date)
- offset (optional): adding the possibility of the offset to be not only
“Year” but also, a specific date or other periods like Month, Quarter.
- company_id (optional)
- include_unposted (optional) (default: false)

ODOO.PARTNER.BALANCE should take the following paramters:
- partner_ids (mandatory) (can be more than one separate by ,)
- accound_codes (optional) (the prefix of the account(s))
- date_range (optional) (21/12/2022,Q1 2022, 12/2022, 2022)
- offset (optional) (default: 0)
- company_id (optional)
- include_unposted (optional) (default: false)

Solution
---------
1. Define the spreadsheet function with the correct parameters in
`accounting_function.js`
2. Hook it to the data source so that it can perform server calls
3. Craft that server python function to returns the list a residual
amounts for the given list of parameters.
4. Adds some tests.

Task-3679808

closes odoo#194567

Signed-off-by: William André (wan) <wan@odoo.com>
StephaneMangin pushed a commit to camptocamp/odoo that referenced this pull request Feb 6, 2025
….BALANCE

Problem
---------
There is currently no formula to get the residual amount of accounts nor
to get the balance of a partner in a given period of time in
spreadsheets.

Objective
---------
Add the formula ODOO.RESIDUAL and ODOO.PARTNER.BALANCE that do just that

ODOO.RESIDUAL should take the following parameters:
- account_codes (mandatory)(can be more than one separate by ,): could
be optional, in that case it could set the domain to all
receivables/payables accounts
- due_date_range or expected_date (optional): date range referred to due
dates (not AML date)
- offset (optional): adding the possibility of the offset to be not only
“Year” but also, a specific date or other periods like Month, Quarter.
- company_id (optional)
- include_unposted (optional) (default: false)

ODOO.PARTNER.BALANCE should take the following paramters:
- partner_ids (mandatory) (can be more than one separate by ,)
- accound_codes (optional) (the prefix of the account(s))
- date_range (optional) (21/12/2022,Q1 2022, 12/2022, 2022)
- offset (optional) (default: 0)
- company_id (optional)
- include_unposted (optional) (default: false)

Solution
---------
1. Define the spreadsheet function with the correct parameters in
`accounting_function.js`
2. Hook it to the data source so that it can perform server calls
3. Craft that server python function to returns the list a residual
amounts for the given list of parameters.
4. Adds some tests.

Task-3679808

closes odoo#194567

Signed-off-by: William André (wan) <wan@odoo.com>
@fw-bot fw-bot deleted the 18.0-spreadsheet-formula-aboo branch February 6, 2025 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants