On 2017-03-03 13:56, Vincent Bastos wrote:
> On Sun, Feb 19, 2017 at 9:40 AM, Cédric Krier <
cedric...@b2ck.com> wrote:
> I tried this module, but it's not what I am trying to achieve. In my module
> I have a function which automatically sends parties invoices by email
> or/and post depending on what the party has selected. The module is setup
> to automatically charge a party a fee if they have selected to receive an
> invoice by post.
>
> At the moment the way I am solving this is by using a couple of fields on
> the configuration of the module:
>
> lease_postage_notice_fee_amount = fields.Numeric(
> 'Postage Notice Fee Amount',
> digits=(16, Eval('currency_digits', 2)),
> depends=['currency_digits']
> )
> lease_postage_notice_fee_account = fields.Many2One(
> 'account.account', 'Postage Notice Fee Account',
> required=False
> )
>
> When the module creates the invoice it checks on the party if they have
> selected to receive by post and adds an invoice line to reflect this.
This sounds good. You could also use a link to a service product and
store use the revenue account and the list price. This will replace the