Add option to force the posting of accounting move

This commit is contained in:
Andrea
2019-04-05 14:40:52 +02:00
committed by Saran440
parent 0ed5e59713
commit 4ac4b2213c
7 changed files with 41 additions and 7 deletions

View File

@@ -22,5 +22,8 @@ class ResCompany(models.Model):
allow_spread_planning = fields.Boolean(
default=True,
help="Disable this option if you do not want to allow the "
"spreading before the invoice is validated.",
)
"spreading before the invoice is validated.")
force_move_auto_post = fields.Boolean(
'Auto-post spread lines',
help="Enable this option if you want to post automatically the "
"accounting moves of all the spreads.")