mirror of
https://github.com/bringout/oca-ocb-accounting.git
synced 2026-04-25 05:42:03 +02:00
19.0 vanilla
This commit is contained in:
parent
ba20ce7443
commit
768b70e05e
2357 changed files with 1057103 additions and 712486 deletions
|
|
@ -0,0 +1,22 @@
|
|||
from odoo import models, fields
|
||||
|
||||
|
||||
class AccountAutopostBillsWizard(models.TransientModel):
|
||||
_name = 'account.autopost.bills.wizard'
|
||||
_description = "Autopost Bills Wizard"
|
||||
|
||||
partner_id = fields.Many2one("res.partner")
|
||||
partner_name = fields.Char(related="partner_id.name")
|
||||
nb_unmodified_bills = fields.Integer("Number of bills previously unmodified from this partner")
|
||||
|
||||
def action_automate_partner(self):
|
||||
for wizard in self:
|
||||
wizard.partner_id.autopost_bills = 'always'
|
||||
|
||||
def action_ask_later(self):
|
||||
for wizard in self:
|
||||
wizard.partner_id.autopost_bills = 'ask'
|
||||
|
||||
def action_never_automate_partner(self):
|
||||
for wizard in self:
|
||||
wizard.partner_id.autopost_bills = 'never'
|
||||
Loading…
Add table
Add a link
Reference in a new issue