Skip to content
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

[IMP]Remove compute from fields. Calculate nightly #332

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions partner_time_to_pay/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ class ResPartner(models.Model):
_inherit = "res.partner"

d2p_life = fields.Float(
compute="_compute_d2x", string="AVG Days to Payable (lifetime)"
store=True, string="AVG Days to Payable (lifetime)"
)
d2p_ytd = fields.Float(compute="_compute_d2x", string="AVG Days to Payable (YTD)")
d2p_ytd = fields.Float(store=True, string="AVG Days to Payable (YTD)")
d2r_life = fields.Float(
compute="_compute_d2x", string="AVG Days to Receivable (lifetime)"
store=True, string="AVG Days to Receivable (lifetime)"
)
d2r_ytd = fields.Float(
compute="_compute_d2x", string="AVG Days to Receivable (YTD)"
store=True, string="AVG Days to Receivable (YTD)"
)

def _compute_d2x(self):
Expand Down
Loading